diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-06-20 20:16:40 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-06-21 22:06:18 +0000 |
commit | f52d0ab89d9c6e772eff15eb2d36342326d7b2f8 (patch) | |
tree | 0835d9ac13b52d07eafce767b8c4920b6505099c | |
parent | 26799829d9e3e46543e7ce834bed0685ebbc31d8 (diff) |
Fix -Wunused-function on non-OSX platforms
Found by headerscheck.
Change-Id: If3c7e2a10132a1201a08db1fb9b71d0cdcd395ff
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
(cherry picked from commit 05b90ceb502c42a41b8acff3d6bc28bb66294a3a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/datavisualization/utils/qutils.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/datavisualization/utils/qutils.h b/src/datavisualization/utils/qutils.h index dc72835e..6a35ff34 100644 --- a/src/datavisualization/utils/qutils.h +++ b/src/datavisualization/utils/qutils.h @@ -38,9 +38,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; |