This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Add missing prototype to cp-names.y
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sun, 20 Mar 2005 17:26:50 +0100 (CET)
- Subject: [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 *);