Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/BLI_strict_flags.h')
-rw-r--r--source/blender/blenlib/BLI_strict_flags.h9
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