delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/10/19/02:59:58

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=MQ/wwl0Wg+0LAMQbiClLsZ9jCQHDUBB66yLi/FwxwXw=;
b=iAkZBuJznLLKWtqMTQMI/ZWuPTAjadJAZIKmiEz7YHJ06e1nQDueUerPjtju1nohGx
IcZUWO9remJJOi8uzZ2NIRX7YeXr2vdewLoOm9ipBkV6t22MYopFTa62iGdBkOJjAmT+
ihVdXAOr17uq5ke72doc6+dG/P6u0ESeWEyHEyUP4heCd0eiIwiaA3yt5AHDAHhTLCX5
hpnUjUNSO/weKqFAKbq/M/0Gb4ZIsYBKVl2qSocoPHF/iR4fCGbRMM1ZVVKGwvVsbQjN
LYGfE9D0pP/u8+06XgHhjyd9lqxxlSc6sLKT4fFUHM75ADSFmvKBPhLVhr5HC/OKWeVf
l0oQ==
MIME-Version: 1.0
X-Received: by 10.194.246.102 with SMTP id xv6mr31415610wjc.58.1445237951689;
Sun, 18 Oct 2015 23:59:11 -0700 (PDT)
In-Reply-To: <CAC4O8c9rjGEsy6NP8kFz5jKRy51NOndbhU37gUa_Om70qbxVKg@mail.gmail.com>
References: <CAC4O8c9rjGEsy6NP8kFz5jKRy51NOndbhU37gUa_Om70qbxVKg AT mail DOT gmail DOT com>
Date: Mon, 19 Oct 2015 11:59:11 +0500
Message-ID: <CABuVarJiWLMNh+cMcNF4vpv3aAm-eHKazu+i=F00WcBWF_=Oag@mail.gmail.com>
Subject: Re: [geda-user] does anyone like -Wdeclaration-after-statement
From: "Sergey Stepanov (no DOT such DOT process 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

>  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 :-)

As for me, I always use -Wall enabled, it really helps write reliable
code (and frequently brokes compilation of some projects :-).

2015-10-19 8:32 GMT+05:00 Britton Kerin (britton DOT kerin AT gmail DOT com) [via
geda-user AT delorie DOT com] <geda-user AT delorie DOT com>:
>
> 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.
>
> I would like this warning option to just go away if no one really likes it

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019