Merge pull request #2415 from phoepsilonix/patch2

[libcalamares] Use Qt helper macros for compiler warnings
This commit is contained in:
Adriaan de Groot 2024-12-22 21:49:47 +01:00 committed by GitHub
commit d4847ce802
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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