From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 7 Jul 2007 01:18:47 -0500 (CDT) Subject: [PATCH 02/11] dtc: move declaration of yyerror Sender: From: Milton Miller To: Jon Loeliger Message-Id: In-Reply-To: Cc: linuxppc-dev@ozlabs.org, David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , yyerror() is used by both dtc-parser.y and dtc-lexer.l, so move the declaration to srcpos.h. Signed-off-by: Milton Miller --- 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;