All of lore.kernel.org
 help / color / mirror / Atom feed
* dtc: Remove unused lexer function
@ 2008-07-29  4:51 David Gibson
  2008-07-31 15:39 ` Jon Loeliger
  0 siblings, 1 reply; 2+ messages in thread
From: David Gibson @ 2008-07-29  4:51 UTC (permalink / raw)
  To: Jon Loeliger; +Cc: linuxppc-dev

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 <david@gibson.dropbear.id.au>

Index: dtc/dtc-lexer.l
===================================================================
--- dtc.orig/dtc-lexer.l	2008-07-29 14:48:08.000000000 +1000
+++ dtc/dtc-lexer.l	2008-07-29 14:48:27.000000000 +1000
@@ -18,7 +18,7 @@
  *                                                                   USA
  */
 
-%option noyywrap nounput yylineno
+%option noyywrap nounput noinput yylineno
 
 %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: Remove unused lexer function
  2008-07-29  4:51 dtc: Remove unused lexer function David Gibson
@ 2008-07-31 15:39 ` Jon Loeliger
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Loeliger @ 2008-07-31 15:39 UTC (permalink / raw)
  To: David Gibson; +Cc: linuxppc-dev

> 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 <david@gibson.dropbear.id.au>

Applied.

jdl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-31 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29  4:51 dtc: Remove unused lexer function David Gibson
2008-07-31 15:39 ` Jon Loeliger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.