From 1904b4bedefea15e43a6583255b6b2d2fd6fc69e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 28 Nov 2009 04:20:18 -0800 Subject: * parser.l: Use flex options to suppress generation of the unused functons yyunput and yyinput, thus getting rid of some compiler diagnostics. --- ChangeLog | 6 ++++++ parser.l | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4eca1bca..d46e0dc2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-28 Kaz Kylheku + + * parser.l: Use flex options to suppress generation of the + unused functons yyunput and yyinput, thus getting rid of + some compiler diagnostics. + 2009-11-28 Kaz Kylheku Code cleanup. All private functions static. Private stuff diff --git a/parser.l b/parser.l index 5a55115d..586c21d1 100644 --- a/parser.l +++ b/parser.l @@ -167,6 +167,8 @@ static wchar_t num_esc(char *num) %} %option stack +%option nounput +%option noinput TOK :?[a-zA-Z_][a-zA-Z0-9_]*|[+-]?[0-9]+ ID_END [^a-zA-Z0-9_] -- cgit v1.2.3