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

Signed-off-by: Milton Miller <[EMAIL PROTECTED]>
--- 
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;
 
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to