From: Jiri Slaby Date: Tue, 1 Mar 2011 09:41:14 +0000 (+0100) Subject: lex: get rid of two warnings X-Git-Tag: v0.37.1~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99150a1ca5e6c8a01208e889938fe0c1b496dd3;p=thirdparty%2Flibcgroup.git lex: get rid of two warnings 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 --- 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 */}