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

Mark Kettenis
2005-03-20T16:32:38Z

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 *);