Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [COMMIT] Add missing prototype to cp-names.y
@ 2005-03-20 16:32 Mark Kettenis
  2005-03-20 16:39 ` Daniel Jacobowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2005-03-20 16:32 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-20 20:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-20 16:32 [COMMIT] Add missing prototype to cp-names.y Mark Kettenis
2005-03-20 16:39 ` Daniel Jacobowitz
2005-03-20 20:17   ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox