BUILD: Makefile: the compiler-specific flags should all be in SPEC_CFLAGS
authorWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2020 08:37:08 +0000 (09:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 10 Mar 2020 08:42:30 +0000 (09:42 +0100)
commit4b61e694b4c07ff53732f70ee0ca83b08fe86bdc
treeb4c0121d6df138b4b51e65103de197cd1959326a
parent0627815f701ee6549bcf4c2611df8ccdd3bd3fc9
BUILD: Makefile: the compiler-specific flags should all be in SPEC_CFLAGS

We used to have -Wall -Wextra -Werror in COPTS which are flags fed by
the various USE_* options, and all other warnings in SPEC_CFLAGS. This
makes it impossible to remove these -W* entries (typically -Wextra).

Let's move these 3 flags into SPEC_CFLAGS where they should have been.
Now it's possible to override SPEC_CFLAGS to match any compiler's
specificities, or to clear all warnings at once, or to replace them
all with "-w" to silence warnings.
Makefile