From 180e41521cedc6edd69e78b22d76364db4f5c7bd Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Sun, 11 Apr 2021 11:09:00 +0200 Subject: Fix compiler warning on platforms without QRhiNativeHandles Change-Id: I61254290853cadf3b1edf6e7b0f82bba9e8d2efe Reviewed-by: Laszlo Agocs (cherry picked from commit 019f35524dc5fe317cd5e02a4483f503caaafe7e) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/gui/rhi/qrhi/tst_qrhi.cpp') 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) { -- cgit v1.2.3