Fix -Wunused-function on non-OSX platforms

Found by headerscheck.

Pick-to: 6.4 6.3 6.2
Change-Id: If3c7e2a10132a1201a08db1fb9b71d0cdcd395ff
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
Marc Mutz 2022-06-20 20:16:40 +02:00
parent 26d23043b7
commit 05b90ceb50
1 changed files with 1 additions and 3 deletions

View File

@ -12,9 +12,7 @@
QT_BEGIN_NAMESPACE
#ifdef Q_OS_MACOS
#pragma clang diagnostic ignored "-Wunused-function"
#endif
[[maybe_unused]]
static inline QSurfaceFormat qDefaultSurfaceFormat(bool antialias)
{
bool isES = false;