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=bU8mC1q6UF5AU8zw3BzemWLj9m7kYUgNol+98JJAt0k=; | |
b=jfXDNlL3Gv5DP7WM3sUvsB4J4Ltr0S40cEE4qyaTMYzHuaCZAnK4UAIdvTJdTRWkwj | |
eBCIHYe1uXYv688Jz/GQkdtrljVlThu2HL6TT+UYGp52TSs762Yb3Jp1yP3koboVyWdq | |
pzGkbwj2xXijbHi3cdCrWJxtz7o+HiUzfy83K83oi3mSkJJGi63e6H3SpkmvlrPF4zYA | |
ZIRq0Ffk2Xl8SZrc+sJhl8EUZzUVEWqXoK2h60bIF1dryc5U2cb797szG+YGqsMrNX2q | |
CrB47je0hbl14mZHkfA27kSHcpZxlPbNeVv5oK9DnQbhg5qFNcKhn0095pyTvim49uB2 | |
BJEg== | |
MIME-Version: | 1.0 |
X-Received: | by 10.194.8.227 with SMTP id u3mr36041783wja.38.1445286695875; |
Mon, 19 Oct 2015 13:31:35 -0700 (PDT) | |
In-Reply-To: | <CABuVarJiWLMNh+cMcNF4vpv3aAm-eHKazu+i=F00WcBWF_=Oag@mail.gmail.com> |
References: | <CAC4O8c9rjGEsy6NP8kFz5jKRy51NOndbhU37gUa_Om70qbxVKg AT mail DOT gmail DOT com> |
<CABuVarJiWLMNh+cMcNF4vpv3aAm-eHKazu+i=F00WcBWF_=Oag AT mail DOT gmail DOT com> | |
Date: | Mon, 19 Oct 2015 12:31:35 -0800 |
Message-ID: | <CAC4O8c8n7RdxJ6Diq7UYkQAka16zwVQ_E+Wr0JGbiy3_VQw0jw@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 |
--047d7b5d9c071b412c05227b08f7 Content-Type: text/plain; charset=UTF-8 On Sun, Oct 18, 2015 at 10:59 PM, Sergey Stepanov (no DOT such DOT process AT gmail DOT com) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote: > > you cant just start work in middle of function > > IMHO If you are going to start work in the middle of function, you'd > better stop, look around and start another function. > Function is a not just a piece of code, it's a piece of code that you > can test with testbenches :-) > Yes, but when you're instrumenting things to sort out how they work it's convenient > As for me, I always use -Wall enabled, it really helps write reliable > code (and frequently brokes compilation of some projects :-). > My too. I also use -Wextra. Neither of those imply -Wdeclaration-after-statement, it's that unpopular. I like to use -Werror as well and pcb is pretty close to clean enough --047d7b5d9c071b412c05227b08f7 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 10:59 PM, Sergey Stepanov (<a href=3D"mailto:no= .such DOT process AT gmail DOT com">no DOT such DOT process AT gmail DOT com</a>) [via <a href=3D"mai= lto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] <span dir=3D"ltr"><= ;<a href=3D"mailto:geda-user AT delorie DOT com" target=3D"_blank">geda-user AT delor= ie.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"= margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class= =3D"">>=C2=A0 you cant just start work in middle of function<br> <br> </span>IMHO If you are going to start work in the middle of function, you&#= 39;d<br> better stop, look around and start another function.<br> Function is a not just a piece of code, it's a piece of code that you<b= r> can test with testbenches :-)<br></blockquote><div><br></div><div style=3D"= ">Yes, but when you're instrumenting things to sort out how they work i= t's convenient</div><div>=C2=A0</div><blockquote class=3D"gmail_quote" = style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> As for me, I always use -Wall enabled, it really helps write reliable<br> code (and frequently brokes compilation of some projects :-).<br></blockquo= te><div><br></div><div style=3D"">My too.=C2=A0 I also use -Wextra.=C2=A0 N= either of those imply -Wdeclaration-after-statement,</div><div style=3D"">i= t's that unpopular.=C2=A0 I like to use -Werror as well and pcb is pret= ty close to clean enough</div><div style=3D""><br></div></div></div></div> --047d7b5d9c071b412c05227b08f7--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |