From 784e67926a6a89ba4f9782a02b33c19010eb767a Mon Sep 17 00:00:00 2001 From: Matthias Rauter Date: Mon, 17 Feb 2025 12:50:38 +0100 Subject: [PATCH] Silence compiler warning in tst_qrhi.cpp Amends: 51979cfa172ebd89cf0235c6d8b6ccb97610c04d Pick-to: 6.9 6.8 Change-Id: Ia9c553568ba3326bb971c833839a6f9c24240046 Reviewed-by: Magdalena Stojek Reviewed-by: Mate Barany --- tests/auto/gui/rhi/qrhi/tst_qrhi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp index dfc3f59c101..2f7471a2bbc 100644 --- a/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp +++ b/tests/auto/gui/rhi/qrhi/tst_qrhi.cpp @@ -323,6 +323,9 @@ bool tst_QRhi::isAndroidOpenGLSwiftShader(QRhi::Implementation impl, const QRhi #ifdef Q_OS_ANDROID if (impl == QRhi::OpenGLES2 && rhi->driverInfo().deviceName.contains("SwiftShader")) return true; +#else + Q_UNUSED(impl); + Q_UNUSED(rhi); #endif return false; }