This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMIT] Add missing prototype to cp-names.y


Compiling with -Werror on OpenBSD failed.  Turns out that yacc doesn't
provide a prototype for yyparse, while bison does.  Works for me on
systems with and without bison.

Committed,

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* cp-names.y: Add prototype for yylex.

Index: cp-names.y
===================================================================
RCS file: /cvs/src/src/gdb/cp-names.y,v
retrieving revision 1.2
diff -u -p -r1.2 cp-names.y
--- cp-names.y 11 Mar 2005 02:24:22 -0000 1.2
+++ cp-names.y 20 Mar 2005 16:19:09 -0000
@@ -145,6 +145,7 @@ static struct demangle_component *d_bina
 #define yytable	 cpname_yytable
 #define yycheck	 cpname_yycheck
 
+int yyparse (void);
 static int yylex (void);
 static void yyerror (char *);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]