Skip to content

Commit 3b32801

Browse files
committed
lexer: add "noinput" option.
This is to prevent the Envoy build warning: INFO: From Compiling external/com_github_envoyproxy_sqlparser/src/parser/flex_lexer.cpp: flex_lexer.cpp:3577:16: warning: function 'yyinput' is not needed and will not be emitted [-Wunneeded-internal-declaration] static int yyinput (yyscan_t yyscanner) ^ 1 warning generated. Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
1 parent 5f50c68 commit 3b32801

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/parser/flex_lexer.l

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ static std::stringstream strbuf;
4040

4141
/* other flags */
4242
%option noyywrap
43+
%option noinput
4344
%option nounput
4445
%option warn
4546
%option case-insensitive

0 commit comments

Comments
 (0)