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>
This commit is contained in:
parent
a817490335
commit
4d4aa6e21c
@ -49,7 +49,9 @@
|
|||||||
#endif
|
#endif
|
||||||
QT_WARNING_PUSH
|
QT_WARNING_PUSH
|
||||||
QT_WARNING_DISABLE_GCC("-Wsuggest-override")
|
QT_WARNING_DISABLE_GCC("-Wsuggest-override")
|
||||||
|
#if defined(Q_CC_CLANG) && Q_CC_CLANG >= 1100
|
||||||
QT_WARNING_DISABLE_CLANG("-Wdeprecated-copy")
|
QT_WARNING_DISABLE_CLANG("-Wdeprecated-copy")
|
||||||
|
#endif
|
||||||
#include "vk_mem_alloc.h"
|
#include "vk_mem_alloc.h"
|
||||||
QT_WARNING_POP
|
QT_WARNING_POP
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user