]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Remove warning about unknown cast-function-type warning pragma.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 27 Jun 2023 14:44:29 +0000 (16:44 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Tue, 27 Jun 2023 14:44:29 +0000 (16:44 +0200)
doc/Changelog
libunbound/python/libunbound.i

index 887fed7215287800d1060aa77eeeb9bfde3026a1..33f156261d0dbecf6e6d3779871d32e01b5a0a9b 100644 (file)
@@ -1,6 +1,7 @@
 27 June 2023: George
        - Merge #892: Add cachedb hit stat. Introduces 'num.query.cachedb' as
          a new statistical counter.
+       - Remove warning about unknown cast-function-type warning pragma.
 
 22 June 2023: Wouter
        - Merge #903: contrib: add yocto compatible init script.
index c9549bf9008dd5a22790983f3de1670e6966fa91..0cdb3d7e59d612dc302c3bd8f3ac105e9eb3381d 100644 (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"
 %}