summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-11 11:09:00 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2021-04-12 10:41:50 +0200
commit019f35524dc5fe317cd5e02a4483f503caaafe7e (patch)
treeee6c09678dabcacd9a96d54b4bf715273dfb9045 /tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
parente90dda731453967a6d9e3adb34890cdf6858240c (diff)
Fix compiler warning on platforms without QRhiNativeHandles
Pick-to: 6.1 Change-Id: I61254290853cadf3b1edf6e7b0f82bba9e8d2efe Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi/qrhi/tst_qrhi.cpp')
-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 6d0ec2a488..076106a589 100644
--- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
+++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp
@@ -447,7 +447,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) {