diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-02-08 20:14:51 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-02-09 14:39:59 +0100 |
commit | 697289df3c6c2537fc4015a09d4dced788fcc2fb (patch) | |
tree | 66014e72978de6abba43e54aff3b0b89b41dcda2 | |
parent | f0ecc63939161ae9415e4224095320381fd97dda (diff) | |
download | qtwayland-697289df3c6c2537fc4015a09d4dced788fcc2fb.tar.gz |
Fix unused warnings
Unused private variables that clang complains about.
Task-number: QTBUG-100249
Change-Id: I204eea8d4fc0c22542224d94bae113fa66870d15
Reviewed-by: Liang Qi <liang.qi@qt.io>
(cherry picked from commit 389a0a54ea3774cd07a2265ea71fcae92e7b3894)
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r-- | src/client/qwaylandinputmethodcontext.cpp | 2 | ||||
-rw-r--r-- | src/client/qwaylandinputmethodcontext_p.h | 2 | ||||
-rw-r--r-- | src/compositor/compositor_api/qwaylandquickitem.cpp | 2 | ||||
-rw-r--r-- | src/compositor/compositor_api/qwaylandquickitem_p.h | 3 |
4 files changed, 2 insertions, 7 deletions
diff --git a/src/client/qwaylandinputmethodcontext.cpp b/src/client/qwaylandinputmethodcontext.cpp index f8c91411..033c89c8 100644 --- a/src/client/qwaylandinputmethodcontext.cpp +++ b/src/client/qwaylandinputmethodcontext.cpp @@ -55,8 +55,8 @@ static constexpr int maxStringSize = 1000; // actual max is 4096/3 QWaylandTextInputMethod::QWaylandTextInputMethod(QWaylandDisplay *display, struct ::qt_text_input_method_v1 *textInputMethod) : QtWayland::qt_text_input_method_v1(textInputMethod) - , m_display(display) { + Q_UNUSED(display); } QWaylandTextInputMethod::~QWaylandTextInputMethod() diff --git a/src/client/qwaylandinputmethodcontext_p.h b/src/client/qwaylandinputmethodcontext_p.h index 8be65f44..9542fab7 100644 --- a/src/client/qwaylandinputmethodcontext_p.h +++ b/src/client/qwaylandinputmethodcontext_p.h @@ -103,8 +103,6 @@ public: void sendInputState(QInputMethodQueryEvent *state, Qt::InputMethodQueries queries = Qt::ImQueryInput); private: - QWaylandDisplay *m_display; - QHash<int, QList<QInputMethodEvent::Attribute> > m_pendingInputMethodEvents; QHash<int,int> m_offsetFromCompositor; diff --git a/src/compositor/compositor_api/qwaylandquickitem.cpp b/src/compositor/compositor_api/qwaylandquickitem.cpp index eb326a29..7e1227db 100644 --- a/src/compositor/compositor_api/qwaylandquickitem.cpp +++ b/src/compositor/compositor_api/qwaylandquickitem.cpp @@ -142,8 +142,8 @@ static const struct { }; QWaylandBufferMaterialShader::QWaylandBufferMaterialShader(QWaylandBufferRef::BufferFormatEgl format) - : m_format(format) { + Q_UNUSED(format); setShaderFileName(VertexStage, QString::fromLatin1(bufferTypes[format].vertexShaderSourceFile)); auto fragmentShaderSourceFile = QString::fromLatin1(bufferTypes[format].fragmentShaderSourceFile); diff --git a/src/compositor/compositor_api/qwaylandquickitem_p.h b/src/compositor/compositor_api/qwaylandquickitem_p.h index 09b9f678..fd525fa2 100644 --- a/src/compositor/compositor_api/qwaylandquickitem_p.h +++ b/src/compositor/compositor_api/qwaylandquickitem_p.h @@ -65,9 +65,6 @@ public: void updateSampledImage(RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override; void setupExternalOESShader(const QString &shaderFilename); - -private: - const QWaylandBufferRef::BufferFormatEgl m_format; }; class QWaylandBufferMaterial : public QSGMaterial |