[libcalamares] Use Qt helper macros for compiler warnings

This commit is contained in:
Masato TOYOSHIMA 2024-12-22 12:51:50 +09:00
parent e6fa229b18
commit 186d44e51b
No known key found for this signature in database
GPG Key ID: 57B49CC5AA4F00FC

View File

@ -22,6 +22,8 @@
* automoc does all the work for us.
*/
#ifdef __clang__
#include <qglobal.h>
QT_WARNING_PUSH
QT_WARNING_DISABLE_CLANG( "-Wextra-semi-stmt" )
QT_WARNING_DISABLE_CLANG( "-Wredundant-parens" )
QT_WARNING_DISABLE_CLANG( "-Wreserved-identifier" )
@ -29,4 +31,5 @@ QT_WARNING_DISABLE_CLANG( "-Wreserved-identifier" )
#if __clang_major__ >= 17
QT_WARNING_DISABLE_CLANG( "-Wunsafe-buffer-usage" )
#endif
QT_WARNING_POP
#endif