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

* Re: [COMMIT] Add missing prototype to cp-names.y
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-03-20 16:39 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb-patches

On Sun, Mar 20, 2005 at 05:26:50PM +0100, Mark Kettenis wrote:
> 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.

Thanks!  Typo though:

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

> +int yyparse (void);

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

* Re: [COMMIT] Add missing prototype to cp-names.y
  2005-03-20 16:39 ` Daniel Jacobowitz
@ 2005-03-20 20:17   ` Mark Kettenis
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2005-03-20 20:17 UTC (permalink / raw)
  To: drow; +Cc: gdb-patches

   Date: Sun, 20 Mar 2005 11:39:22 -0500
   From: Daniel Jacobowitz <drow@false.org>

   On Sun, Mar 20, 2005 at 05:26:50PM +0100, Mark Kettenis wrote:
   > 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.

   Thanks!  Typo though:

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

   > +int yyparse (void);

Oops.  Sorry 'bout that.  Fixed now.

Mark


^ 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