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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-09-01 15:39:43 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-09-01 15:40:10 +0300
commita660f27527e04123b62d622b5f6afece15293af7 (patch)
tree59da2a01d1bfc94a0d28abacb7366a5aea2b8f42 /source/blender/python/generic
parent1140238acf31fba54e3a88b9519c8e8b46b19d59 (diff)
Don't use GCC-only pragma for all compilers
Diffstat (limited to 'source/blender/python/generic')
-rw-r--r--source/blender/python/generic/bgl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c
index e949972220b..88f0fbf4ce0 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) \
{ \