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.l16
1 files changed, 11 insertions, 5 deletions
diff --git a/wiretap/ascend-scanner.l b/wiretap/ascend-scanner.l
index ac87f467f2..52dfd723a9 100644
--- a/wiretap/ascend-scanner.l
+++ b/wiretap/ascend-scanner.l
@@ -1,9 +1,4 @@
/*
- * We want to stop processing when we get to the end of the input.
- */
-%option noyywrap
-
-/*
* We don't read from the terminal.
*/
%option never-interactive
@@ -353,3 +348,14 @@ void ascend_init_lexer(FILE_T fh)
yy_fh = fh;
BEGIN(INITIAL);
}
+
+/*
+ * We want to stop processing when we get to the end of the input.
+ * (%option noyywrap is not used because if used then
+ * some flex versions (eg: 2.5.35) generate code which causes
+ * warnings by the Windows VC compiler).
+ */
+
+int yywrap(void) {
+ return 1;
+}