]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: Makefile: improve detection of support for compiler warnings
authorWilly Tarreau <w@1wt.eu>
Thu, 14 Sep 2017 17:05:45 +0000 (19:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 14 Sep 2017 17:05:45 +0000 (19:05 +0200)
commitb780166499ba95fe0a2356a2c5193d405817d77f
tree866fb98c93566456ee474b1507aeab97d830b3b4
parent065843c8767cd7851637b517990221709116b848
BUILD: Makefile: improve detection of support for compiler warnings

Some compiler versions don't emit an error when facing an unknown
no-warning unless another error is reported, resulting in all -Wno-*
options being enabled by default and being reported as wrong with
build errors. Let's create a new "cc-nowarn" function to disable
warnings only after checking that the positive one is supported.
Makefile