X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mrupX5V5YxuDYGGyFhFTOECa9zfidRr7ammOkQZ5MsI=; b=PRsrS6uigJgG2yhrvJc3PqaOighkwtPEchSRwzwqgVJUcP2yXzzIfQw7u0k4Vy6o1/ u8U+H19Qag7bRgNG7vyCwhegOAjl/u6UGc1GFzm5b9rHeROWw1w+YMXungyCgJsy+Mkl vJRfXTtsDLu+dqxHHZ6EiRgQOnEztrenteDz62YU07RgN0+s9g49tnAhISt3akkAPlSS BUKNrlzbd+O92XAm7iwttH5pWbSNzT8L4f9K48tFaEeDM8OvbVcvaQWEojFAn2i9vZLg 9QFXXmXQfsqV3mldKFWCKYJAH5CgHdNMvXk6Z+c8y1BLCFF9B9+Q4/oWWeOFCL1Bg6WI bMFg== MIME-Version: 1.0 X-Received: by 10.180.39.178 with SMTP id q18mr4136375wik.57.1445286234369; Mon, 19 Oct 2015 13:23:54 -0700 (PDT) In-Reply-To: <201510190345.t9J3jrhn012372@envy.delorie.com> References: <201510190345 DOT t9J3jrhn012372 AT envy DOT delorie DOT com> Date: Mon, 19 Oct 2015 12:23:54 -0800 Message-ID: Subject: Re: [geda-user] does anyone like -Wdeclaration-after-statement From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=001a11c22a5299339005227aec06 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --001a11c22a5299339005227aec06 Content-Type: text/plain; charset=UTF-8 On Sun, Oct 18, 2015 at 7:45 PM, DJ Delorie wrote: > > > I find it annoying because you cant just start work in middle of function > > without producing a bunch of spurious warnings. > > > > It promotes bad style too because redundancy between declarations and > point > > of use, and forces use of bogus initializers, inefficient and/or > redundance > > initializers or no initialize more often. > > It also stops you from writing code that can only be compiled with gcc :-) > That was 20 years ago. Non-leading declarations are in I think two standards since then. --001a11c22a5299339005227aec06 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Sun, Oct 18, 2015 at 7:45 PM, DJ Delorie <dj AT delorie DOT com> wrote:

> I find it annoying because you cant just start work in middle of funct= ion
> without producing a bunch of spurious warnings.
>
> It promotes bad style too because redundancy between declarations and = point
> of use, and forces use of bogus initializers, inefficient and/or redun= dance
> initializers or no initialize more often.

It also stops you from writing code that can only be compiled with g= cc :-)

That was 20 years ago= .=C2=A0 Non-leading declarations are in I think two standards since
then.=C2=A0

--001a11c22a5299339005227aec06--