INN commit: trunk/innfeed (configfile.l)

INN Commit rra at isc.org
Sat Dec 30 00:53:39 UTC 2017


    Date: Friday, December 29, 2017 @ 16:53:38
  Author: eagle
Revision: 10209

Use a #pragma to ignore yyunput in flex parser

The declaration of yyunput() with UNUSED was removed when fixing
the source to build with -Wredundant-decls, but it looks like it's
still sometimes needed.  Ignore the unused yyunput function with a
pragma to disable the warning instead, since it's very unlikely we
care about unused functions in the flex input file.

Modified:
  trunk/innfeed/configfile.l

--------------+
 configfile.l |    3 +++
 1 file changed, 3 insertions(+)

Modified: configfile.l
===================================================================
--- configfile.l	2017-12-30 00:52:10 UTC (rev 10208)
+++ configfile.l	2017-12-30 00:53:38 UTC (rev 10209)
@@ -30,6 +30,9 @@
 #pragma GCC diagnostic ignored "-Wsign-compare"
 #pragma GCC diagnostic ignored "-Wnull-dereference"
 
+/* flex always declares yyunput, but we don't use it. */
+#pragma GCC diagnostic ignored "-Wunused-function"
+
 #if defined (FLEX_DEBUG)
 #define YY_USER_INIT yy_flex_debug = (getenv ("YYDEBUG") == NULL ? 0 : 1)
 #endif



More information about the inn-committers mailing list