git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] add DEVELOPER makefile knob to check for acknowledged warnings

From
Duy Nguyen <pclouds@gmail.com>
Date
Feb 26, 2016, 09:33 UTC
Message-ID
<CACsJy8Dc1dHp7kGgz_pY1uoXum-k3gnzD0AHFsaLQzuZihUKcw@mail.gmail.com>
In-Reply-To
<17AFC0E6-FC83-4BD4-9C19-43A6B9103866@gmail.com>

On Fri, Feb 26, 2016 at 4:30 PM, Lars Schneider <larsxschneider@gmail.com> wrote:

Show 22 quoted lines
>
>> On 26 Feb 2016, at 10:26, Duy Nguyen <pclouds@gmail.com> wrote:
>>
>> On Thu, Feb 25, 2016 at 3:42 PM,  <larsxschneider@gmail.com> wrote:
>>> +ifdef DEVELOPER
>>> +       CFLAGS +=       -Werror \
>>> +                               -Wdeclaration-after-statement \
>>> +                               -Wno-format-zero-length \
>>> +                               -Wold-style-definition \
>>> +                               -Woverflow \
>>> +                               -Wpointer-arith \
>>> +                               -Wstrict-prototypes \
>>> +                               -Wunused \
>>> +                               -Wvla
>>
>> With the exception of $(SCRIPTS) in Makefile, I think we prefer to
>> avoid \ and have one addition per statement
>>
> I guessed that because I actually looked through the makefile to find how you deal with line
> brakes. The problem here was that this line gets really long and then it is hard to see what
> warnings are enabled.
> Would you be OK with using \ for readability here?
Probably misunderstanding. I meant something like this

CFLAGS += -Werror CFLAGS += -Wdecl.. CFLAGS += -Wno-form..

-- 
Duy
Previous: Lars SchneiderNext: Lars Schneider
Message 8 of 12 in “add DEVELOPER makefile knob to check for acknowledged warnings”
  1. add DEVELOPER makefile knob to check for acknowledged warningslarsxschneider@gmail.com, Feb 25, 2016
  2. Matthieu MoyFeb 25, 2016
  3. Michael HaggertyFeb 25, 2016
  4. Junio C HamanoFeb 25, 2016
  5. Lars SchneiderFeb 26, 2016
  6. Duy NguyenFeb 26, 2016
  7. Lars SchneiderFeb 26, 2016
  8. Duy NguyenFeb 26, 2016
  9. Lars SchneiderFeb 28, 2016
  10. Duy NguyenFeb 28, 2016
  11. Ævar Arnfjörð BjarmasonMay 2, 2017
  12. Jeff KingMay 10, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.