aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend_scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/ascend_scanner.l')
-rw-r--r--wiretap/ascend_scanner.l12
1 files changed, 11 insertions, 1 deletions
diff --git a/wiretap/ascend_scanner.l b/wiretap/ascend_scanner.l
index 0fb90184da..133f0dfc5a 100644
--- a/wiretap/ascend_scanner.l
+++ b/wiretap/ascend_scanner.l
@@ -65,7 +65,10 @@
#include "ascend.h"
#include "file_wrappers.h"
-DIAG_OFF(sign-compare)
+/*
+ * Disable diagnostics in the code generated by Flex.
+ */
+DIAG_OFF_FLEX
#define YY_INPUT(buf,result,max_size) { \
ascend_state_t *parser_state = ascendget_extra(yyscanner); \
@@ -372,3 +375,10 @@ task:|task|at|time:|octets { return KEYWORD; }
<<EOF>> { yyterminate(); }
(.|\n) ;
+
+%%
+
+/*
+ * Turn diagnostics back on, so we check the code that we've written.
+ */
+DIAG_ON_FLEX