- Remove warning about unknown cast-function-type warning pragma.

This commit is contained in:
George Thessalonikefs
2023-06-27 16:44:29 +02:00
parent 41dac805f5
commit bea61fc37c
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -36,6 +36,9 @@
%begin %{
/* store state of warning output, restored at later pop */
#pragma GCC diagnostic push
/* ignore warnings for pragma below, where for older GCC it can produce a
warning if the cast-function-type warning is absent. */
#pragma GCC diagnostic ignored "-Wpragmas"
/* ignore gcc8 METH_NOARGS function cast warnings for swig function pointers */
#pragma GCC diagnostic ignored "-Wcast-function-type"
%}