From c02ef13ed42328b7ff08064d802de10445a8a150 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 12 May 2017 15:51:44 +0300 Subject: [PATCH] Suppress warnings inside ui folder. --HG-- branch : develop --- src/libs/vmisc/stable.h | 4 ++++ src/libs/vmisc/warnings.pri | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/libs/vmisc/stable.h b/src/libs/vmisc/stable.h index 3a680c9d3..118223430 100644 --- a/src/libs/vmisc/stable.h +++ b/src/libs/vmisc/stable.h @@ -45,6 +45,10 @@ # include #endif +#ifdef QT_GUI_LIB +# include +#endif + #endif/*__cplusplus*/ #endif // STABLE_H diff --git a/src/libs/vmisc/warnings.pri b/src/libs/vmisc/warnings.pri index 3471c965d..57118c95d 100644 --- a/src/libs/vmisc/warnings.pri +++ b/src/libs/vmisc/warnings.pri @@ -4,7 +4,7 @@ unix { QMAKE_CXXFLAGS += \ # Key -isystem disable checking errors in system headers. -isystem "$${OUT_PWD}/$${MOC_DIR}" \ - -isystem "$${OUT_PWD}/$${MOC_DIR}" \ + -isystem "$${OUT_PWD}/$${UI_DIR}" \ $$GCC_DEBUG_CXXFLAGS # See common.pri for more details. checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings @@ -29,7 +29,7 @@ unix { QMAKE_CXXFLAGS += \ # Key -isystem disable checking errors in system headers. -isystem "$${OUT_PWD}/$${MOC_DIR}" \ - -isystem "$${OUT_PWD}/$${MOC_DIR}" \ + -isystem "$${OUT_PWD}/$${UI_DIR}" \ $$CLANG_DEBUG_CXXFLAGS # See common.pri for more details. checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings @@ -46,7 +46,7 @@ unix { *-icc-*{ QMAKE_CXXFLAGS += \ -isystem "$${OUT_PWD}/$${MOC_DIR}" \ - -isystem "$${OUT_PWD}/$${MOC_DIR}" \ + -isystem "$${OUT_PWD}/$${UI_DIR}" \ $$ICC_DEBUG_CXXFLAGS checkWarnings{ # For enable run qmake with CONFIG+=checkWarnings