]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
lex: get rid of two warnings
authorJiri Slaby <jslaby@suse.cz>
Tue, 1 Mar 2011 09:41:14 +0000 (10:41 +0100)
committerJan Safranek <jsafrane@redhat.com>
Tue, 1 Mar 2011 11:17:36 +0000 (12:17 +0100)
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 <jslaby@suse.cz>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/lex.l

index d590e9fad8f99b734d92b299d8c54ffacc69336e..8a99bbc91b14541fb739f6117b72cf0d2f9f98c9 100644 (file)
--- 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 */}