From a1db0749fdb270f57fc3ef8f868700e6b3b5c0dd Mon Sep 17 00:00:00 2001 From: David Gibson Date: Tue, 29 Jul 2008 14:51:36 +1000 Subject: [PATCH] dtc: Remove unused lexer function dtc does not use the input() function in flex. Apparently on some gcc versions the unused function will cause warnings. Therefore, this patch removes the function by using the 'noinput' option to flex. Signed-off-by: David Gibson --- dtc-lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtc-lexer.l b/dtc-lexer.l index 44dbfd3..6f8b7dd 100644 --- a/dtc-lexer.l +++ b/dtc-lexer.l @@ -18,7 +18,7 @@ * USA */ -%option noyywrap nounput yylineno +%option noyywrap nounput noinput yylineno %x INCLUDE %x BYTESTRING