delorie.com/archives/browse.cgi | search |
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: | <CAC4O8c9rjGEsy6NP8kFz5jKRy51NOndbhU37gUa_Om70qbxVKg AT mail DOT gmail DOT com> |
<201510190345 DOT t9J3jrhn012372 AT envy DOT delorie DOT com> | |
Date: | Mon, 19 Oct 2015 12:23:54 -0800 |
Message-ID: | <CAC4O8c9ZWmi_L1EjWYdFNEDCmHJ6PQ=0owO6P0RWARqeSsuFAw@mail.gmail.com> |
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]" <geda-user AT delorie DOT com> |
To: | geda-user AT delorie DOT com |
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 |
--001a11c22a5299339005227aec06 Content-Type: text/plain; charset=UTF-8 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 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 <div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo= te">On Sun, Oct 18, 2015 at 7:45 PM, DJ Delorie <span dir=3D"ltr"><<a hr= ef=3D"mailto:dj AT delorie DOT com" target=3D"_blank">dj AT delorie DOT com</a>></span= > wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo= rder-left:1px #ccc solid;padding-left:1ex"><span class=3D""><br> > I find it annoying because you cant just start work in middle of funct= ion<br> > without producing a bunch of spurious warnings.<br> ><br> > It promotes bad style too because redundancy between declarations and = point<br> > of use, and forces use of bogus initializers, inefficient and/or redun= dance<br> > initializers or no initialize more often.<br> <br> </span>It also stops you from writing code that can only be compiled with g= cc :-)<br></blockquote><div><br></div><div style=3D"">That was 20 years ago= .=C2=A0 Non-leading declarations are in I think two standards since</div><d= iv style=3D"">then.=C2=A0</div></div><br></div></div> --001a11c22a5299339005227aec06--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |