INN commit: trunk/innfeed (configfile.l)

INN Commit rra at isc.org
Mon Oct 16 04:10:54 UTC 2017


    Date: Sunday, October 15, 2017 @ 21:10:54
  Author: eagle
Revision: 10180

Suppress sign-compare warnings for innfeed lexer

Some versions of flex (such as 2.6.1-1.3 in Debian stretch) declare a
variable as int that should be size_t.  We can't really do much about
that, and it's fixed in current flex, so just suppress the warning
using a gcc pragma.

Modified:
  trunk/innfeed/configfile.l

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

Modified: configfile.l
===================================================================
--- configfile.l	2017-09-18 20:13:48 UTC (rev 10179)
+++ configfile.l	2017-10-16 04:10:54 UTC (rev 10180)
@@ -23,6 +23,11 @@
 #error "You must use FLEX to process the lex input file."
 #endif
 
+/* Some versions of flex (such as 2.6.1-1.3 in Debian stretch) declare a
+   variable as int that should be size_t.  We can't really do much about
+   that, and it's fixed in current flex, so just suppress the warning. */
+#pragma GCC diagnostic ignored "-Wsign-compare"
+
 #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