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>
This commit is contained in:
Volker Hilsheimer 2021-04-11 11:09:00 +02:00 committed by Qt Cherry-pick Bot
parent 38f1cc128c
commit 180e41521c

View File

@ -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) {