From 186d44e51b9c571f16d2b616b4dd70bd1bdef376 Mon Sep 17 00:00:00 2001 From: Masato TOYOSHIMA Date: Sun, 22 Dec 2024 12:51:50 +0900 Subject: [PATCH] [libcalamares] Use Qt helper macros for compiler warnings --- src/libcalamares/utils/moc-warnings.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcalamares/utils/moc-warnings.h b/src/libcalamares/utils/moc-warnings.h index 3345515e8..bbe382ab7 100644 --- a/src/libcalamares/utils/moc-warnings.h +++ b/src/libcalamares/utils/moc-warnings.h @@ -22,6 +22,8 @@ * automoc does all the work for us. */ #ifdef __clang__ +#include +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