From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32253 invoked by alias); 22 Jun 2012 17:31:19 -0000 Received: (qmail 32243 invoked by uid 22791); 22 Jun 2012 17:31:17 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,URIBL_BLACK X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Jun 2012 17:31:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id F147A1C70D9; Fri, 22 Jun 2012 13:30:57 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jQN6Q8wBlduM; Fri, 22 Jun 2012 13:30:57 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 0D3401C700C; Fri, 22 Jun 2012 13:30:57 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id E6DC5145616; Fri, 22 Jun 2012 10:30:49 -0700 (PDT) Date: Fri, 22 Jun 2012 17:31:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: Mark Kettenis , dje@google.com, pierre.muller@ics-cnrs.unistra.fr, gdb-patches@sourceware.org Subject: Re: New ARI warning Wed May 23 01:55:03 UTC 2012 Message-ID: <20120622173049.GL2799@adacore.com> References: <20120523015503.GA25312@sourceware.org> <4fbc9d77.0853b40a.641e.ffff90dbSMTPIN_ADDED@mx.google.com> <87bold8l4d.fsf@fleche.redhat.com> <201205282043.q4SKhksB010254@glazunov.sibelius.xs4all.nl> <87ipejib8o.fsf@fleche.redhat.com> <20120622171922.GK2799@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="u65IjBhB3TIa72Vp" Content-Disposition: inline In-Reply-To: <20120622171922.GK2799@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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-06/txt/msg00722.txt.bz2 --u65IjBhB3TIa72Vp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 280 (deep breath...) > Tested on x86_64-linux by rebuilding the native compiler with > --enable-targets=all. > > gdb/ChangeLog: > > * configure.ac (build_warnings): Add -Wdeclaration-after-statement. > * configure: Regenerate. Patch attached, this time. -- Joel --u65IjBhB3TIa72Vp Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Add-Wdeclaration-after-statement-to-list-of-compiler.patch" Content-length: 1599 >From 6dd065b6a22bab9c916ce716faf005ce368c2d8e Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 22 Jun 2012 10:15:53 -0700 Subject: [PATCH] Add -Wdeclaration-after-statement to list of compiler warnings gdb/ChangeLog: * configure.ac (build_warnings): Add -Wdeclaration-after-statement. * configure: Regenerate. --- gdb/configure | 3 ++- gdb/configure.ac | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/configure b/gdb/configure index 1ea4ee9..b0b5d11 100755 --- a/gdb/configure +++ b/gdb/configure @@ -12386,7 +12386,8 @@ fi build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ -Wformat-nonliteral -Wno-pointer-sign \ -Wno-unused -Wunused-value -Wunused-function \ --Wno-switch -Wno-char-subscripts -Wmissing-prototypes" +-Wno-switch -Wno-char-subscripts -Wmissing-prototypes \ +-Wdeclaration-after-statement" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64. diff --git a/gdb/configure.ac b/gdb/configure.ac index 5771825..3fdeb89 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1867,7 +1867,8 @@ fi build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ -Wformat-nonliteral -Wno-pointer-sign \ -Wno-unused -Wunused-value -Wunused-function \ --Wno-switch -Wno-char-subscripts -Wmissing-prototypes" +-Wno-switch -Wno-char-subscripts -Wmissing-prototypes \ +-Wdeclaration-after-statement" # Enable -Wno-format by default when using gcc on mingw since many # GCC versions complain about %I64. -- 1.7.1 --u65IjBhB3TIa72Vp--