From f51bad11d70b2548ed2cbf117b90bd9dbf1afedf Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 4 Dec 2015 19:52:51 -0800 Subject: 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 --- epan/dfilter/scanner.l | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'epan/dfilter') diff --git a/epan/dfilter/scanner.l b/epan/dfilter/scanner.l index be45f7390c..c213ac8351 100644 --- a/epan/dfilter/scanner.l +++ b/epan/dfilter/scanner.l @@ -19,6 +19,11 @@ */ %option prefix="df_" +/* + * We're reading from a string, so we don't need yywrap. + */ +%option noyywrap + %{ /* * Wireshark - Network traffic analyzer -- cgit v1.2.3