INN commit: trunk (4 files)

INN Commit rra at isc.org
Mon Jun 25 20:41:47 UTC 2018


    Date: Monday, June 25, 2018 @ 13:41:46
  Author: iulius
Revision: 10294

Silent a few warnings from GCC 8.1

Modified:
  trunk/innd/perl.c
  trunk/innfeed/configfile.l
  trunk/lib/perl.c
  trunk/nnrpd/perl.c

----------------------+
 innd/perl.c          |    2 ++
 innfeed/configfile.l |    3 +++
 lib/perl.c           |    2 ++
 nnrpd/perl.c         |    2 ++
 4 files changed, 9 insertions(+)

Modified: innd/perl.c
===================================================================
--- innd/perl.c	2018-06-25 20:41:18 UTC (rev 10293)
+++ innd/perl.c	2018-06-25 20:41:46 UTC (rev 10294)
@@ -39,9 +39,11 @@
 #include "innd.h"
 
 #include <EXTERN.h>
+#pragma GCC diagnostic ignored "-Wcast-align"
 #pragma GCC diagnostic ignored "-Wredundant-decls"
 #pragma GCC diagnostic ignored "-Wshadow"
 #include <perl.h>
+#pragma GCC diagnostic warning "-Wcast-align"
 #pragma GCC diagnostic warning "-Wredundant-decls"
 #pragma GCC diagnostic warning "-Wshadow"
 #include <XSUB.h>

Modified: innfeed/configfile.l
===================================================================
--- innfeed/configfile.l	2018-06-25 20:41:18 UTC (rev 10293)
+++ innfeed/configfile.l	2018-06-25 20:41:46 UTC (rev 10294)
@@ -30,6 +30,9 @@
 #pragma GCC diagnostic ignored "-Wsign-compare"
 #pragma GCC diagnostic ignored "-Wnull-dereference"
 
+/* Some versions of flex (such as 2.5.35) declare twice isatty. */
+#pragma GCC diagnostic ignored "-Wredundant-decls"
+
 /* flex always declares yyunput, but we don't use it. */
 #pragma GCC diagnostic ignored "-Wunused-function"
 

Modified: lib/perl.c
===================================================================
--- lib/perl.c	2018-06-25 20:41:18 UTC (rev 10293)
+++ lib/perl.c	2018-06-25 20:41:46 UTC (rev 10294)
@@ -23,9 +23,11 @@
 #include "inn/libinn.h"
 
 #include <EXTERN.h>
+#pragma GCC diagnostic ignored "-Wcast-align"
 #pragma GCC diagnostic ignored "-Wredundant-decls"
 #pragma GCC diagnostic ignored "-Wshadow"
 #include <perl.h>
+#pragma GCC diagnostic warning "-Wcast-align"
 #pragma GCC diagnostic warning "-Wredundant-decls"
 #pragma GCC diagnostic warning "-Wshadow"
 #include <XSUB.h>

Modified: nnrpd/perl.c
===================================================================
--- nnrpd/perl.c	2018-06-25 20:41:18 UTC (rev 10293)
+++ nnrpd/perl.c	2018-06-25 20:41:46 UTC (rev 10294)
@@ -26,9 +26,11 @@
 #ifdef DO_PERL
 
 #include <EXTERN.h>
+#pragma GCC diagnostic ignored "-Wcast-align"
 #pragma GCC diagnostic ignored "-Wredundant-decls"
 #pragma GCC diagnostic ignored "-Wshadow"
 #include <perl.h>
+#pragma GCC diagnostic warning "-Wcast-align"
 #pragma GCC diagnostic warning "-Wredundant-decls"
 #pragma GCC diagnostic warning "-Wshadow"
 #include <XSUB.h>



More information about the inn-committers mailing list