diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2013-06-23 00:00:17 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2013-06-23 00:00:17 +0400 |
commit | d23bf097128b4baf032d14c345e9d97656f2da78 (patch) | |
tree | 8d9c02fd19a772f4e3a8ea74cef8b3f8db7081a2 /source/blender/blenlib/intern/BLI_mempool.c | |
parent | c6adbe794e68337179b33d101085fd0aa1ad15c9 (diff) |
build fix for old gccs (after rev.57620)
enabling the new pragmas only when gcc >= 4.6
gcc 4.2.1 here (OSX)
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_mempool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c index ff9a5abfaa1..59372534340 100644 --- a/source/blender/blenlib/intern/BLI_mempool.c +++ b/source/blender/blenlib/intern/BLI_mempool.c @@ -45,9 +45,11 @@ #ifdef __GNUC__ # pragma GCC diagnostic error "-Wsign-conversion" +#if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ # pragma GCC diagnostic error "-Wsign-compare" # pragma GCC diagnostic error "-Wconversion" #endif +#endif /* note: copied from BLO_blend_defs.h, don't use here because we're in BLI */ #ifdef __BIG_ENDIAN__ |