diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-11-22 10:23:45 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-12-02 17:38:33 +0100 |
commit | 4d4aa6e21c3e3a881e87fccda2a6ba545d9190e5 (patch) | |
tree | 9d50ce8adc3074c7783122333ebb3fcf855a4057 /src/gui/rhi | |
parent | a8174903353c11d3b3a4f8a9617ec9c8038bd389 (diff) |
Restrict clang warning disabler to affected versions
Apparently -Wdeprecated-copy got added between clang 9 and 11.
Versions without it warn about the attempt to suppress this option's
warnings.
This follows-up on commit 8662fbdd7e0c8c5b089a3c9871ae0cd71790858e
Change-Id: I7fe9258cfe8a79d24c1f8b331a56468415b25cdb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/rhi')
-rw-r--r-- | src/gui/rhi/qrhivulkan.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp index 1cead19f77..03f3fb4ad8 100644 --- a/src/gui/rhi/qrhivulkan.cpp +++ b/src/gui/rhi/qrhivulkan.cpp @@ -49,7 +49,9 @@ #endif QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Wsuggest-override") +#if defined(Q_CC_CLANG) && Q_CC_CLANG >= 1100 QT_WARNING_DISABLE_CLANG("-Wdeprecated-copy") +#endif #include "vk_mem_alloc.h" QT_WARNING_POP |