INN commit: trunk (5 files)

INN Commit rra at isc.org
Fri Dec 29 21:04:57 UTC 2017


    Date: Friday, December 29, 2017 @ 13:04:56
  Author: iulius
Revision: 10207

Silent redundant declaration GCC warnings from Perl and Python system header files

Modified:
  trunk/innd/perl.c
  trunk/innd/python.c
  trunk/lib/perl.c
  trunk/nnrpd/perl.c
  trunk/nnrpd/python.c

----------------+
 innd/perl.c    |    2 ++
 innd/python.c  |    2 ++
 lib/perl.c     |    2 ++
 nnrpd/perl.c   |    2 ++
 nnrpd/python.c |    2 ++
 5 files changed, 10 insertions(+)

Modified: innd/perl.c
===================================================================
--- innd/perl.c	2017-12-29 18:48:17 UTC (rev 10206)
+++ innd/perl.c	2017-12-29 21:04:56 UTC (rev 10207)
@@ -39,7 +39,9 @@
 #include "innd.h"
 
 #include <EXTERN.h>
+#pragma GCC diagnostic ignored "-Wredundant-decls"
 #include <perl.h>
+#pragma GCC diagnostic warning "-Wredundant-decls"
 #include <XSUB.h>
 #include "ppport.h"
 

Modified: innd/python.c
===================================================================
--- innd/python.c	2017-12-29 18:48:17 UTC (rev 10206)
+++ innd/python.c	2017-12-29 21:04:56 UTC (rev 10207)
@@ -32,7 +32,9 @@
  *  and before any standard headers are included (because Python may
  *  define some pre-processor definitions which affect the standard
  *  headers on some systems). */
+#pragma GCC diagnostic ignored "-Wredundant-decls"
 #include "Python.h"
+#pragma GCC diagnostic warning "-Wredundant-decls"
 
 /*  Define Py_ssize_t when it does not exist (Python < 2.5.0). */
 #if PY_VERSION_HEX < 0x02050000

Modified: lib/perl.c
===================================================================
--- lib/perl.c	2017-12-29 18:48:17 UTC (rev 10206)
+++ lib/perl.c	2017-12-29 21:04:56 UTC (rev 10207)
@@ -23,7 +23,9 @@
 #include "inn/libinn.h"
 
 #include <EXTERN.h>
+#pragma GCC diagnostic ignored "-Wredundant-decls"
 #include <perl.h>
+#pragma GCC diagnostic warning "-Wredundant-decls"
 #include <XSUB.h>
 #include "ppport.h"
 

Modified: nnrpd/perl.c
===================================================================
--- nnrpd/perl.c	2017-12-29 18:48:17 UTC (rev 10206)
+++ nnrpd/perl.c	2017-12-29 21:04:56 UTC (rev 10207)
@@ -26,7 +26,9 @@
 #ifdef DO_PERL
 
 #include <EXTERN.h>
+#pragma GCC diagnostic ignored "-Wredundant-decls"
 #include <perl.h>
+#pragma GCC diagnostic warning "-Wredundant-decls"
 #include <XSUB.h>
 #include "ppport.h"
 

Modified: nnrpd/python.c
===================================================================
--- nnrpd/python.c	2017-12-29 18:48:17 UTC (rev 10206)
+++ nnrpd/python.c	2017-12-29 21:04:56 UTC (rev 10207)
@@ -33,7 +33,9 @@
  *  and before any standard headers are included (because Python may
  *  define some pre-processor definitions which affect the standard
  *  headers on some systems). */
+#pragma GCC diagnostic ignored "-Wredundant-decls"
 #include "Python.h"
+#pragma GCC diagnostic warning "-Wredundant-decls"
 
 /*  Define Py_ssize_t when it does not exist (Python < 2.5.0). */
 #if PY_VERSION_HEX < 0x02050000



More information about the inn-committers mailing list