Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71d24f commit bf9de7aCopy full SHA for bf9de7a
1 file changed
Modules/_ctypes/callbacks.c
@@ -431,7 +431,7 @@ CThunkObject *_ctypes_alloc_callback(PyObject *callable,
431
#pragma clang diagnostic push
432
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
433
#endif
434
-#if defined(__GNUC__)
+#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5)))
435
#pragma GCC diagnostic push
436
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
437
@@ -440,7 +440,7 @@ CThunkObject *_ctypes_alloc_callback(PyObject *callable,
440
#if defined(__clang__) || defined(MACOSX)
441
#pragma clang diagnostic pop
442
443
444
#pragma GCC diagnostic pop
445
446
0 commit comments