[obv] Fix m2-exp.y compilation error

Jan Kratochvil
2012-01-17T00:09:10Z

Hi Sergio,

On Mon, 16 Jan 2012 22:06:46 +0100, Sergio Durigan Junior wrote:
> --- a/gdb/m2-exp.y
> +++ b/gdb/m2-exp.y
[...]
> void
> -yyerror (msg)
> +yyerror (char *msg)
> char *msg;
> {
> if (prev_lexptr)

m2-exp.y: In function ‘m2_error’:
m2-exp.y:1069:1: error: old-style parameter declarations in prototyped function definition

Recommending to always build the tree before/after a check-in.

Checked in the typo fix.

Regards,
Jan

http://sourceware.org/ml/gdb-cvs/2012-01/msg00146.html

--- src/gdb/ChangeLog 2012/01/16 21:03:36 1.13741
+++ src/gdb/ChangeLog 2012/01/17 00:06:45 1.13742
@@ -1,3 +1,8 @@
+2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix compilation error.
+ * m2-exp.y (yyerror): Use ANSI C prototype.
+
2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>

* f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
--- src/gdb/m2-exp.y 2012/01/16 21:03:36 1.38
+++ src/gdb/m2-exp.y 2012/01/17 00:06:47 1.39
@@ -1067,7 +1067,6 @@

void
yyerror (char *msg)
- char *msg;
{
if (prev_lexptr)
lexptr = prev_lexptr;