From: W.C.A. Wijngaards Date: Fri, 16 Aug 2019 10:52:58 +0000 (+0200) Subject: - Remove warning about unknown cast-function-type warning pragma. X-Git-Tag: release-1.9.3rc2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3b3d64ef361957906ec367260d95008f3cf6ced;p=thirdparty%2Funbound.git - Remove warning about unknown cast-function-type warning pragma. --- diff --git a/doc/Changelog b/doc/Changelog index bc01fd363..0ba7b9a38 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -8,6 +8,7 @@ positive. - Please doxygen's parser for "@" occurrence in doxygen comment. - Fixup contrib/fastrpz.patch + - Remove warning about unknown cast-function-type warning pragma. 15 August 2019: Wouter - iana portlist updated. diff --git a/pythonmod/interface.i b/pythonmod/interface.i index b4b1c7b70..c02ebaf95 100644 --- a/pythonmod/interface.i +++ b/pythonmod/interface.i @@ -4,6 +4,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" %}