[libcalamares] Use Qt helper macros for compiler warnings
This commit is contained in:
parent
e6fa229b18
commit
186d44e51b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user