From 5eed97c6408612ff6f7e9e57323b56fd4d5ad2c0 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 16 Nov 2015 12:28:21 +0200 Subject: [PATCH] Enable #pragma message in Clang. --HG-- branch : develop --- common.pri | 6 ++++-- src/app/tape/stable.h | 2 -- src/app/valentina/stable.h | 2 -- src/libs/ifc/stable.h | 2 -- src/libs/qmuparser/stable.h | 2 -- src/libs/vdxf/stable.h | 2 -- src/libs/vformat/stable.h | 2 -- src/libs/vgeometry/stable.h | 2 -- src/libs/vlayout/stable.h | 2 -- src/libs/vmisc/stable.h | 2 -- src/libs/vobj/stable.h | 2 -- src/libs/vpatterndb/stable.h | 2 -- src/libs/vpropertyexplorer/stable.h | 2 -- src/libs/vtools/stable.h | 2 -- src/libs/vwidgets/stable.h | 2 -- src/test/ParserTest/stable.h | 2 -- src/test/ValentinaTest/stable.h | 2 -- 17 files changed, 4 insertions(+), 34 deletions(-) diff --git a/common.pri b/common.pri index d66462cd6..50c4e9d76 100644 --- a/common.pri +++ b/common.pri @@ -610,7 +610,8 @@ CLANG_DEBUG_CXXFLAGS += \ -Wwrite-strings \ -Wzero-length-array \ -Qunused-arguments \ - -fcolor-diagnostics + -fcolor-diagnostics \ + -fms-extensions # Need for pragma message ICC_DEBUG_CXXFLAGS += \ $$ISYSTEM \ # Ignore warnings Qt headers. @@ -650,5 +651,6 @@ CLANG_DEBUG_CXXFLAGS += \ -Wall \ -Wextra \ -pedantic \ - -fno-omit-frame-pointer # Need for exchndl.dll + -fno-omit-frame-pointer \ # Need for exchndl.dll + -fms-extensions # Need for pragma message } diff --git a/src/app/tape/stable.h b/src/app/tape/stable.h index 290e8baf4..78cf2b92d 100644 --- a/src/app/tape/stable.h +++ b/src/app/tape/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for tape utility.\n") -#endif /* Add C includes here */ diff --git a/src/app/valentina/stable.h b/src/app/valentina/stable.h index c0e783794..9b1010c2b 100644 --- a/src/app/valentina/stable.h +++ b/src/app/valentina/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for Valentina.\n") -#endif /* Add C includes here */ diff --git a/src/libs/ifc/stable.h b/src/libs/ifc/stable.h index d94550e68..af7517b20 100644 --- a/src/libs/ifc/stable.h +++ b/src/libs/ifc/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for IFC library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/qmuparser/stable.h b/src/libs/qmuparser/stable.h index 66fbc35dd..006cfe22a 100644 --- a/src/libs/qmuparser/stable.h +++ b/src/libs/qmuparser/stable.h @@ -27,9 +27,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for QmuParser library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vdxf/stable.h b/src/libs/vdxf/stable.h index 191182a90..87d25b41e 100644 --- a/src/libs/vdxf/stable.h +++ b/src/libs/vdxf/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VDxf library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vformat/stable.h b/src/libs/vformat/stable.h index 6526c50e9..d0dc1ded8 100644 --- a/src/libs/vformat/stable.h +++ b/src/libs/vformat/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VFormat library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vgeometry/stable.h b/src/libs/vgeometry/stable.h index 1925cc882..343fb506a 100644 --- a/src/libs/vgeometry/stable.h +++ b/src/libs/vgeometry/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VGeometry library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vlayout/stable.h b/src/libs/vlayout/stable.h index 829c1d86f..3c30f0fd6 100644 --- a/src/libs/vlayout/stable.h +++ b/src/libs/vlayout/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VLayout library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vmisc/stable.h b/src/libs/vmisc/stable.h index 495de51b1..3a680c9d3 100644 --- a/src/libs/vmisc/stable.h +++ b/src/libs/vmisc/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VMisc library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vobj/stable.h b/src/libs/vobj/stable.h index f24b2cdf9..1fffde7d2 100644 --- a/src/libs/vobj/stable.h +++ b/src/libs/vobj/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VObj library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vpatterndb/stable.h b/src/libs/vpatterndb/stable.h index e19a85cee..7ded31ea1 100644 --- a/src/libs/vpatterndb/stable.h +++ b/src/libs/vpatterndb/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VPatternDB library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vpropertyexplorer/stable.h b/src/libs/vpropertyexplorer/stable.h index 119249ac7..4a85b4653 100644 --- a/src/libs/vpropertyexplorer/stable.h +++ b/src/libs/vpropertyexplorer/stable.h @@ -22,9 +22,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VPropertyExplorer library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vtools/stable.h b/src/libs/vtools/stable.h index fd7241f19..e60c26f5b 100644 --- a/src/libs/vtools/stable.h +++ b/src/libs/vtools/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VTools library.\n") -#endif /* Add C includes here */ diff --git a/src/libs/vwidgets/stable.h b/src/libs/vwidgets/stable.h index 67341a4a2..d2091b505 100644 --- a/src/libs/vwidgets/stable.h +++ b/src/libs/vwidgets/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for VWidgets library.\n") -#endif /* Add C includes here */ diff --git a/src/test/ParserTest/stable.h b/src/test/ParserTest/stable.h index b4f802c0a..89548fe59 100644 --- a/src/test/ParserTest/stable.h +++ b/src/test/ParserTest/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for QmuParser tests.\n") -#endif /* Add C includes here */ diff --git a/src/test/ValentinaTest/stable.h b/src/test/ValentinaTest/stable.h index d08eea301..93244b24a 100644 --- a/src/test/ValentinaTest/stable.h +++ b/src/test/ValentinaTest/stable.h @@ -30,9 +30,7 @@ #define STABLE_H /* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */ -#ifndef __clang__ #pragma message("Compiling precompiled headers for Valentina tests.\n") -#endif /* Add C includes here */