aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/epan/wimaxasncp/wimaxasncp_dict.l21
1 files changed, 8 insertions, 13 deletions
diff --git a/plugins/epan/wimaxasncp/wimaxasncp_dict.l b/plugins/epan/wimaxasncp/wimaxasncp_dict.l
index dab2836a93..3dc4dbf887 100644
--- a/plugins/epan/wimaxasncp/wimaxasncp_dict.l
+++ b/plugins/epan/wimaxasncp/wimaxasncp_dict.l
@@ -1,12 +1,6 @@
%top {
/* Include this before everything else, for various large-file definitions */
#include "config.h"
-
-// warning C4267: 'argument' : conversion from 'size_t' to 'int', possible loss of data
-#ifdef _MSC_VER
-#pragma warning(push)
-#pragma warning(disable : 4267)
-#endif
}
/*
@@ -106,7 +100,10 @@
#include "wimaxasncp_dict.h"
-DIAG_OFF(sign-compare)
+/*
+ * Disable diagnostics in the code generated by Flex.
+ */
+DIAG_OFF_FLEX
typedef struct entity_t {
gchar *name;
@@ -514,14 +511,12 @@ since_attr since=\042
<OUTSIDE>. ;
-
-
-
-
-
%%
-DIAG_ON(sign-compare)
+/*
+ * Turn diagnostics back on, so we check the code that we've written.
+ */
+DIAG_ON_FLEX
static int debugging = 0;