Thread (8 messages) 8 messages, 2 authors, 2021-09-28

Re: [PATCH 2/3] Makefile: avoid multiple -Wall in CFLAGS

flat view

From: Carlo Arenas <hidden>
Date: 2021-09-28 11:03:23

On Tue, Sep 28, 2021 at 2:52 AM Ævar Arnfjörð Bjarmason
[off-list ref] wrote:
This really breaks things for anyone who's relying on specifing CFLAGS
now to clobber the default -Wall configuration, e.g. on both xlc and aCC
after this:
got it; then it should have been DEVELOPER_CFLAGS+=-Wall the one to
keep, and that way there is no need to hack CFLAGS just to disable
-Wall in non GNU compilers IMHO
of course, that still leaves the question if -Wall is still something
we want to have by default for people NOT using DEVELOPER=1 to
compile.
I'd end up with -Wall twice, gcc doesn't complain, but maybe some other
toolchains do.
clang wouldn't complain either, and indeed you already have 2 -Wall,
which is what I was trying to clean up.
But I think this needs to at least have
s/DEVELOPER_CFLAGS/WARNING_CFLAGS/g or something.
makes sense, even though I assumed there would be less churn if
reusing the variable you came up with.
in any case, I think it is clear that this change that I thought will
be tiny might be better tackled in a different thread, not to
complicate the main reason for this thread, which was to make sure
that users that might build the next release (even with DEVELOPER=1)
are less likely to find issues than the developers that got their
first taste of "pedantic" in master.

will wait for more feedback before doing a reroll, but would be nice
to get feedback also in the other 2 patches, which hopefully are less
problematic.

Carlo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help