diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-04-11 11:09:00 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-04-12 10:41:50 +0200 |
commit | 019f35524dc5fe317cd5e02a4483f503caaafe7e (patch) | |
tree | ee6c09678dabcacd9a96d54b4bf715273dfb9045 /tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | |
parent | e90dda731453967a6d9e3adb34890cdf6858240c (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.cpp | 2 |
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) { |