aboutsummaryrefslogtreecommitdiffstats
path: root/text2pcap-scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'text2pcap-scanner.l')
-rw-r--r--text2pcap-scanner.l11
1 files changed, 4 insertions, 7 deletions
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l
index 2b9e6dbab8..b4024b162d 100644
--- a/text2pcap-scanner.l
+++ b/text2pcap-scanner.l
@@ -66,7 +66,10 @@
#include "text2pcap.h"
-DIAG_OFF(sign-compare)
+/*
+ * Disable diagnostics in the code generated by Flex.
+ */
+DIAG_OFF_FLEX
/*
* Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
@@ -75,12 +78,6 @@ DIAG_OFF(sign-compare)
#define YY_NO_UNISTD_H
#endif
-#ifdef _WIN32
-/* disable Windows VC compiler warning "signed/unsigned mismatch" associated */
-/* with YY_INPUT code generated by flex versions such as 2.5.35. */
-#pragma warning (disable:4018)
-#endif
-
%}
hexdigit [0-9A-Fa-f]