* dtc: Use noinput flex option for convert-dtsv0 to remove warning
@ 2008-11-07 0:45 David Gibson
2008-11-17 20:09 ` Jon Loeliger
0 siblings, 1 reply; 2+ messages in thread
From: David Gibson @ 2008-11-07 0:45 UTC (permalink / raw)
To: Jon Loeliger; +Cc: linuxppc-dev, devicetree-discuss
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>
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
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: dtc: Use noinput flex option for convert-dtsv0 to remove warning
2008-11-07 0:45 dtc: Use noinput flex option for convert-dtsv0 to remove warning David Gibson
@ 2008-11-17 20:09 ` Jon Loeliger
0 siblings, 0 replies; 2+ messages in thread
From: Jon Loeliger @ 2008-11-17 20:09 UTC (permalink / raw)
To: David Gibson; +Cc: linuxppc-dev, devicetree-discuss
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-17 20:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-07 0:45 dtc: Use noinput flex option for convert-dtsv0 to remove warning David Gibson
2008-11-17 20:09 ` Jon Loeliger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).