Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Sergio Durigan Junior <sergiodj@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: [obv] Fix m2-exp.y compilation error
Date: Tue, 17 Jan 2012 01:08:00 -0000	[thread overview]
Message-ID: <20120117000845.GA26718@host2.jankratochvil.net> (raw)
In-Reply-To: <m3pqejcq6x.fsf@redhat.com>

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;


  reply	other threads:[~2012-01-17  0:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-16 22:31 [commit][obv] Remove dead code and reformat function prototype on parsers Sergio Durigan Junior
2012-01-17  1:08 ` Jan Kratochvil [this message]
2012-01-17  6:18   ` [obv] Fix m2-exp.y compilation error Sergio Durigan Junior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120117000845.GA26718@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sergiodj@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox