summaryrefslogtreecommitdiffstats
path: root/src/linguist/lupdate/lupdatepreprocessoraction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/linguist/lupdate/lupdatepreprocessoraction.h')
-rw-r--r--src/linguist/lupdate/lupdatepreprocessoraction.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/linguist/lupdate/lupdatepreprocessoraction.h b/src/linguist/lupdate/lupdatepreprocessoraction.h
index 01caed52d..3cb443c9c 100644
--- a/src/linguist/lupdate/lupdatepreprocessoraction.h
+++ b/src/linguist/lupdate/lupdatepreprocessoraction.h
@@ -32,13 +32,11 @@
#include "cpp_clang.h"
#include "synchronized.h"
-#if defined(Q_CC_MSVC)
-# pragma warning(push)
-# pragma warning(disable: 4100)
-# pragma warning(disable: 4146)
-# pragma warning(disable: 4267)
-# pragma warning(disable: 4624)
-#endif
+QT_WARNING_PUSH
+QT_WARNING_DISABLE_MSVC(4100)
+QT_WARNING_DISABLE_MSVC(4146)
+QT_WARNING_DISABLE_MSVC(4267)
+QT_WARNING_DISABLE_MSVC(4624)
#include <clang/Frontend/CompilerInstance.h>
#include <clang/Frontend/FrontendActions.h>
@@ -46,9 +44,7 @@
#include <clang/Lex/PPCallbacks.h>
#include <clang/Lex/Preprocessor.h>
-#if defined(Q_CC_MSVC)
-# pragma warning(pop)
-#endif
+QT_WARNING_POP
#include <memory>