From a99150a1ca5e6c8a01208e889938fe0c1b496dd3 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Tue, 1 Mar 2011 10:41:14 +0100 Subject: [PATCH] lex: get rid of two warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add a lex option to avoid: lex.c:1173:17: warning: ‘yyunput’ defined but not used lex.c:1214:16: warning: ‘input’ defined but not used Signed-off-by: Jiri Slaby Signed-off-by: Jan Safranek --- src/lex.l | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lex.l b/src/lex.l index d590e9fa..8a99bbc9 100644 --- a/src/lex.l +++ b/src/lex.l @@ -21,6 +21,8 @@ int line_no = 1; #define YY_FATAL_ERROR(msg) fprintf(stderr, "%s\n", msg) %} +%option nounput noinput + %% \n {line_no++;} [ \t] {/* DO NOTHING */} -- 2.47.2