Skip to contentSkip to conversation

dtc: Remove unused lexer function

PATCH Applied David Gibson 2 participants 2 messages Jul 29, 2008 – Jul 31, 2008

lore
Share & tools
lore
#0 lore raw

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.

dtc-lexer.l +1 -1
Index: dtc/dtc-lexer.l
===================================================================
@@ -18,7 +18,7 @@
  *                                                                   USA
  */
 
-%option noyywrap nounput yylineno
+%option noyywrap nounput noinput yylineno
 
 %x INCLUDE
 %x BYTESTRING
Signature · 4 lines
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
Applied
#1 lore raw
Quoted 5 lines

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.

Applied.

jdl