From d23bf097128b4baf032d14c345e9d97656f2da78 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Sat, 22 Jun 2013 20:00:17 +0000 Subject: build fix for old gccs (after rev.57620) enabling the new pragmas only when gcc >= 4.6 gcc 4.2.1 here (OSX) --- source/blender/blenlib/intern/BLI_heap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenlib/intern/BLI_heap.c') diff --git a/source/blender/blenlib/intern/BLI_heap.c b/source/blender/blenlib/intern/BLI_heap.c index 93c99fed8e2..8b849753df7 100644 --- a/source/blender/blenlib/intern/BLI_heap.c +++ b/source/blender/blenlib/intern/BLI_heap.c @@ -41,9 +41,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 /***/ -- cgit v1.2.3