[Bf-blender-cvs] [a660f27] master: Don't use GCC-only pragma for all compilers
Sergey Sharybin
noreply at git.blender.org
Tue Sep 1 14:40:32 CEST 2015
Commit: a660f27527e04123b62d622b5f6afece15293af7
Author: Sergey Sharybin
Date: Tue Sep 1 17:39:43 2015 +0500
Branches: master
https://developer.blender.org/rBa660f27527e04123b62d622b5f6afece15293af7
Don't use GCC-only pragma for all compilers
===================================================================
M source/blender/python/generic/bgl.c
===================================================================
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c
index e949972..88f0fbf 100644
--- a/source/blender/python/generic/bgl.c
+++ b/source/blender/python/generic/bgl.c
@@ -1696,7 +1696,9 @@ PyObject *BPyInit_bgl(void)
Py_INCREF((PyObject *)&BGL_bufferType);
/* needed since some function pointers won't be NULL */
-#pragma GCC diagnostic ignored "-Waddress"
+#ifdef __GNUC__
+# pragma GCC diagnostic ignored "-Waddress"
+#endif
#define PY_MOD_ADD_METHOD(func) \
{ \
More information about the Bf-blender-cvs
mailing list