summaryrefslogtreecommitdiff
path: root/diag-control.h
diff options
context:
space:
mode:
Diffstat (limited to 'diag-control.h')
-rw-r--r--diag-control.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/diag-control.h b/diag-control.h
index ca86f6be..72ded1c3 100644
--- a/diag-control.h
+++ b/diag-control.h
@@ -37,6 +37,19 @@
#include "pcap/compiler-tests.h"
+/*
+ * Suppress Flex warnings.
+ */
+#if defined(_MSC_VER)
+ #define DIAG_OFF_FLEX \
+ __pragma(warning(push)) \
+ __pragma(warning(disable:4127))
+ #define DIAG_ON_FLEX __pragma(warning(pop))
+#else
+ #define DIAG_OFF_FLEX
+ #define DIAG_ON_FLEX
+#endif
+
#ifdef YYBYACC
/*
* Berkeley YACC.