From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12305 invoked by alias); 17 Jan 2012 00:09:10 -0000 Received: (qmail 12295 invoked by uid 22791); 17 Jan 2012 00:09:09 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Jan 2012 00:08:51 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0H08oJT018528 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 16 Jan 2012 19:08:50 -0500 Received: from host2.jankratochvil.net (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0H08kHV013176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 16 Jan 2012 19:08:49 -0500 Date: Tue, 17 Jan 2012 01:08:00 -0000 From: Jan Kratochvil To: Sergio Durigan Junior Cc: gdb-patches@sourceware.org Subject: [obv] Fix m2-exp.y compilation error Message-ID: <20120117000845.GA26718@host2.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-01/txt/msg00581.txt.bz2 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 + + Fix compilation error. + * m2-exp.y (yyerror): Use ANSI C prototype. + 2012-01-16 Sergio Durigan Junior * 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;