commit | b780166499ba95fe0a2356a2c5193d405817d77f | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Sep 14 19:05:45 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Sep 14 19:05:45 2017 +0200 |
tree | 866fb98c93566456ee474b1507aeab97d830b3b4 | |
parent | 065843c8767cd7851637b517990221709116b848 [diff] |
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.