[PATCH 02/11] dtc: move declaration of yyerror

Milton Miller miltonm at bga.com
Sat Jul 7 16:18:47 EST 2007


yyerror() is used by both dtc-parser.y and dtc-lexer.l, so move
the declaration to srcpos.h.

Signed-off-by: Milton Miller <miltonm at bga.com>
--- 
eliminates implicit declaration warning.

Index: dtc/dtc-parser.y
===================================================================
--- dtc.orig/dtc-parser.y	2007-06-14 23:16:18.000000000 -0500
+++ dtc/dtc-parser.y	2007-06-14 23:16:25.000000000 -0500
@@ -26,7 +26,6 @@
 #include "srcpos.h"
 
 int yylex(void);
-void yyerror(char const *);
 cell_t cell_from_string(char *s, unsigned int base);
 
 extern struct boot_info *the_boot_info;
Index: dtc/srcpos.h
===================================================================
--- dtc.orig/srcpos.h	2007-06-14 23:16:18.000000000 -0500
+++ dtc/srcpos.h	2007-06-14 23:16:25.000000000 -0500
@@ -62,6 +62,7 @@ typedef struct YYLTYPE {
 
 
 
+extern void yyerror(char const *);
 
 extern int srcpos_filenum;
 



More information about the Linuxppc-dev mailing list