summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglfunctions_2_0.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2023-07-03 18:39:01 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-07-05 23:13:08 +0000
commit4443d392e4f234a5315cfd773559af936cb62ddb (patch)
treea4c9364acd1d92a9303534d9ff04c5dbe9a24308 /src/opengl/qopenglfunctions_2_0.h
parenta4125f421b7b37db156bcae04459ab063c3bb9bd (diff)
QOpenGLFunctions: fix -Wunused-private-field (Clang 15)
I see this with -unity-build -unity-build-batch-size 32, but I don't know whether it's unity-build or just Clang 15, so also pick to 6.2. The issue exists in 5.15, too, presumably, but I have no desire to find a non-C++17 fix. It appears the generator (glgen) is out-of-sync with the state of its supposed output as of at least 18aae36a90c0753f1b1e615ba8437d8ebd1bd2fb, so don't try to update the generator (I failed to find where these fields originate from, anyway). Pick-to: 6.6 6.5 6.2 Task-number: QTBUG-115031 Change-Id: Ia27620b8f8034c3e8eff383abb849e6ce93dce8a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/opengl/qopenglfunctions_2_0.h')
-rw-r--r--src/opengl/qopenglfunctions_2_0.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/qopenglfunctions_2_0.h b/src/opengl/qopenglfunctions_2_0.h
index f45a56b4f3..cca8d590e7 100644
--- a/src/opengl/qopenglfunctions_2_0.h
+++ b/src/opengl/qopenglfunctions_2_0.h
@@ -656,7 +656,7 @@ private:
QOpenGLFunctions_1_2_DeprecatedBackend* d_1_2_Deprecated;
QOpenGLFunctions_1_3_DeprecatedBackend* d_1_3_Deprecated;
QOpenGLFunctions_1_4_DeprecatedBackend* d_1_4_Deprecated;
- void *m_reserved_2_0_Deprecated; // To maintain BC
+ Q_DECL_UNUSED_MEMBER void *m_reserved_2_0_Deprecated = nullptr; // To maintain BC
};
// OpenGL 1.0 core functions