From: George Thessalonikefs Date: Tue, 27 Jun 2023 14:44:29 +0000 (+0200) Subject: - Remove warning about unknown cast-function-type warning pragma. X-Git-Tag: release-1.18.0rc1~24^2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bea61fc37c34d28ec1d48117871f3d95e125191a;p=thirdparty%2Funbound.git - Remove warning about unknown cast-function-type warning pragma. --- diff --git a/doc/Changelog b/doc/Changelog index 887fed721..33f156261 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. diff --git a/libunbound/python/libunbound.i b/libunbound/python/libunbound.i index c9549bf90..0cdb3d7e5 100644 --- a/libunbound/python/libunbound.i +++ b/libunbound/python/libunbound.i @@ -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" %}