diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-01 15:39:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-09-01 15:40:10 +0300 |
commit | a660f27527e04123b62d622b5f6afece15293af7 (patch) | |
tree | 59da2a01d1bfc94a0d28abacb7366a5aea2b8f42 /source/blender/python | |
parent | 1140238acf31fba54e3a88b9519c8e8b46b19d59 (diff) |
Don't use GCC-only pragma for all compilers
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/generic/bgl.c | 4 |
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) \ { \ |