summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 11:09:00 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-04-12 11:21:26 +0000
commit180e41521cedc6edd69e78b22d76364db4f5c7bd (patch)
tree00a0ef9f956a626382a85c819abdedf6ed2266cb
parent38f1cc128c8923d9bed6bd3c5c6fa5131acde609 (diff)
Fix compiler warning on platforms without QRhiNativeHandles
Change-Id: I61254290853cadf3b1edf6e7b0f82bba9e8d2efe Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit 019f35524dc5fe317cd5e02a4483f503caaafe7e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/gui/rhi/qrhi/tst_qrhi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
index c4d1dca1bb..ebe0514ce4 100644
--- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
+++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
@@ -444,7 +444,7 @@ void tst_QRhi::nativeHandles()
QVERIFY(result == QRhi::FrameOpSuccess);
QVERIFY(cb);
- const QRhiNativeHandles *cbHandles = cb->nativeHandles();
+ Q_DECL_UNUSED const QRhiNativeHandles *cbHandles = cb->nativeHandles();
// no null check here, backends where not applicable will return null
switch (impl) {