aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-04 19:52:51 -0800
committerGuy Harris <guy@alum.mit.edu>2015-12-05 08:06:50 +0000
commitf51bad11d70b2548ed2cbf117b90bd9dbf1afedf (patch)
tree9db789d73c4958c3a792c6b10abcbb746318bcd8 /tools
parent42333aa353515ccbb68c6e74109cd34a34d1abe6 (diff)
Use noyywrap rather than defining our own yywrap functions.
Tweak lemonflex-tail.inc to fix an issue this reveals. It appears that, at least on the buildbots, the Visual Studio compiler no longer issues warnings for the code generated with %option noyywrap. Change-Id: Id64d56f1ae8a79d0336488a4a50518da1f511497 Reviewed-on: https://code.wireshark.org/review/12433 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools')
-rw-r--r--tools/lemon/lemonflex-tail.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lemon/lemonflex-tail.inc b/tools/lemon/lemonflex-tail.inc
index 55af823ac9..5a63fdd3f6 100644
--- a/tools/lemon/lemonflex-tail.inc
+++ b/tools/lemon/lemonflex-tail.inc
@@ -9,7 +9,9 @@ Prototypes:
void CONCAT(MODNAME,_scanner_text(char *text));
void CONCAT(MODNAME,_scanner_file(FILE *fh));
void CONCAT(MODNAME,_scanner_cleanup(void));
+#ifndef YY_SKIP_YYWRAP
int CONCAT(MODNAME,_wrap(void));
+#endif
#include <cppmagic.h>