diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 13:35:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-30 13:35:59 +0400 |
commit | 0319db10639217a17f77b9d1e16e8e28dca6022e (patch) | |
tree | 43b9bfb5da224676275b06b237c163649847bab2 /source/blender/blenlib/BLI_strict_flags.h | |
parent | 905c8168348bc67664dd90e45d2b0104fb3cfc2e (diff) |
Correct own recent changes broke release builds
Diffstat (limited to 'source/blender/blenlib/BLI_strict_flags.h')
-rw-r--r-- | source/blender/blenlib/BLI_strict_flags.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_strict_flags.h b/source/blender/blenlib/BLI_strict_flags.h index 908d02eb4ad..1d595ff3bf3 100644 --- a/source/blender/blenlib/BLI_strict_flags.h +++ b/source/blender/blenlib/BLI_strict_flags.h @@ -28,7 +28,6 @@ */ #ifdef __GNUC__ -# pragma GCC diagnostic error "-Wpedantic" # pragma GCC diagnostic error "-Wsign-conversion" # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ # pragma GCC diagnostic error "-Wsign-compare" @@ -37,8 +36,12 @@ # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 /* gcc4.8+ only (behavior changed to ignore globals)*/ # pragma GCC diagnostic error "-Wshadow" # endif -# ifdef __clang__ /* pedantic causes clang error */ -# pragma GCC diagnostic ignored "-Wlanguage-extension-token" +/* pedantic gives too many issues, developers can define this for own use */ +# ifdef WARN_PEDANTIC +# pragma GCC diagnostic error "-Wpedantic" +# ifdef __clang__ /* pedantic causes clang error */ +# pragma GCC diagnostic ignored "-Wlanguage-extension-token" +# endif # endif #endif |