Patchwork dtc: Use noinput flex option for convert-dtsv0 to remove warning

login
register
mail settings
Submitter David Gibson
Date Nov. 7, 2008, 12:45 a.m.
Message ID <20081107004548.GH6692@yookeroo.seuss>
Download mbox | patch
Permalink /patch/7648/
State Not Applicable
Headers show

Comments

David Gibson - Nov. 7, 2008, 12:45 a.m.
The convert-dtsv0 lexer doesn't use lex's input() macro/function.
This can result in "defined but not used" warnings.  This patch uses
flex's noinput option to prevent this warning (as we already do for
dtc-lexer.l).

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Jon Loeliger - Nov. 17, 2008, 8:09 p.m.
> The convert-dtsv0 lexer doesn't use lex's input() macro/function.
> This can result in "defined but not used" warnings.  This patch uses
> flex's noinput option to prevent this warning (as we already do for
> dtc-lexer.l).
> 
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

Applied.

Thanks,
jdl

Patch

Index: dtc/convert-dtsv0-lexer.l
===================================================================
--- dtc.orig/convert-dtsv0-lexer.l	2008-11-07 11:43:05.000000000 +1100
+++ dtc/convert-dtsv0-lexer.l	2008-11-07 11:43:20.000000000 +1100
@@ -17,7 +17,7 @@ 
  *                                                                   USA
  */
 
-%option noyywrap nounput
+%option noyywrap nounput noinput
 
 %x INCLUDE
 %x BYTESTRING