INN commit: branches/2.6/innfeed (configfile.l)
INN Commit
rra at isc.org
Mon Oct 16 04:13:18 UTC 2017
Date: Sunday, October 15, 2017 @ 21:13:18
Author: eagle
Revision: 10181
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:
branches/2.6/innfeed/configfile.l
--------------+
configfile.l | 5 +++++
1 file changed, 5 insertions(+)
Modified: configfile.l
===================================================================
--- configfile.l 2017-10-16 04:10:54 UTC (rev 10180)
+++ configfile.l 2017-10-16 04:13:18 UTC (rev 10181)
@@ -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