From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27997 invoked by alias); 22 Jun 2012 17:41:30 -0000 Received: (qmail 27985 invoked by uid 22791); 22 Jun 2012 17:41:29 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KAM_MX3,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD,URIBL_BLACK 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; Fri, 22 Jun 2012 17:41:16 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5MHewIM031676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Jun 2012 13:40:58 -0400 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q5MHeudE004154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 22 Jun 2012 13:40:57 -0400 From: Tom Tromey To: Joel Brobecker 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 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> <20120622173049.GL2799@adacore.com> Date: Fri, 22 Jun 2012 17:41:00 -0000 In-Reply-To: <20120622173049.GL2799@adacore.com> (Joel Brobecker's message of "Fri, 22 Jun 2012 10:30:49 -0700") Message-ID: <877guzgs7r.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00724.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: >> * configure.ac (build_warnings): Add -Wdeclaration-after-statement. >> * configure: Regenerate. Yes, ok. Thanks; I hadn't realized there was a flag for this already :) Discussion on irc pointed out that this is still allowed: for (int i = 0; ...) I think this doesn't suffer from the readability problems that declarations in the code generally do; and in fact usually makes the code cleaner, by restricting the scope of the loop variable. How about we flip the switch to C99 for 7.6? Tom