INN commit: trunk (innd/perl.c lib/perl.c nnrpd/perl.c)

INN Commit rra at isc.org
Sun Feb 11 15:35:51 UTC 2018


    Date: Sunday, February 11, 2018 @ 07:35:50
  Author: iulius
Revision: 10244

Silent Wshadow warning from gcc for Perl headers

At least Perl 5.24 header files produce Wshadow warning. 

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

--------------+
 innd/perl.c  |    2 ++
 lib/perl.c   |    2 ++
 nnrpd/perl.c |    2 ++
 3 files changed, 6 insertions(+)

Modified: innd/perl.c
===================================================================
--- innd/perl.c	2018-02-11 15:27:49 UTC (rev 10243)
+++ innd/perl.c	2018-02-11 15:35:50 UTC (rev 10244)
@@ -40,8 +40,10 @@
 
 #include <EXTERN.h>
 #pragma GCC diagnostic ignored "-Wredundant-decls"
+#pragma GCC diagnostic ignored "-Wshadow"
 #include <perl.h>
 #pragma GCC diagnostic warning "-Wredundant-decls"
+#pragma GCC diagnostic warning "-Wshadow"
 #include <XSUB.h>
 #include "ppport.h"
 

Modified: lib/perl.c
===================================================================
--- lib/perl.c	2018-02-11 15:27:49 UTC (rev 10243)
+++ lib/perl.c	2018-02-11 15:35:50 UTC (rev 10244)
@@ -24,8 +24,10 @@
 
 #include <EXTERN.h>
 #pragma GCC diagnostic ignored "-Wredundant-decls"
+#pragma GCC diagnostic ignored "-Wshadow"
 #include <perl.h>
 #pragma GCC diagnostic warning "-Wredundant-decls"
+#pragma GCC diagnostic warning "-Wshadow"
 #include <XSUB.h>
 #include "ppport.h"
 

Modified: nnrpd/perl.c
===================================================================
--- nnrpd/perl.c	2018-02-11 15:27:49 UTC (rev 10243)
+++ nnrpd/perl.c	2018-02-11 15:35:50 UTC (rev 10244)
@@ -27,8 +27,10 @@
 
 #include <EXTERN.h>
 #pragma GCC diagnostic ignored "-Wredundant-decls"
+#pragma GCC diagnostic ignored "-Wshadow"
 #include <perl.h>
 #pragma GCC diagnostic warning "-Wredundant-decls"
+#pragma GCC diagnostic warning "-Wshadow"
 #include <XSUB.h>
 #include "ppport.h"
 



More information about the inn-committers mailing list