diff options
author | Dmitry Golovin <dima@golovin.in> | 2017-06-09 17:10:47 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-06-23 15:45:48 -0400 |
commit | 9d12a6a21fd146f543e8a6b8ec4cce7fd61be606 (patch) | |
tree | 28e101e07103ee371386958ffe7e102d16f4f184 /configure | |
parent | ce385fcfb2db74b109067083db4a26ca810eaa14 (diff) | |
download | musl-9d12a6a21fd146f543e8a6b8ec4cce7fd61be606.tar.gz |
fix clang CFLAGS checks and silence unused argument warnings
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -249,6 +249,7 @@ fi # tryflag CFLAGS_TRY -Werror=unknown-warning-option tryflag CFLAGS_TRY -Werror=unused-command-line-argument +tryflag CFLAGS_TRY -Werror=ignored-optimization-argument tryldflag LDFLAGS_TRY -Werror=unknown-warning-option tryldflag LDFLAGS_TRY -Werror=unused-command-line-argument @@ -504,6 +505,13 @@ tryflag CFLAGS_AUTO -Werror=implicit-int tryflag CFLAGS_AUTO -Werror=pointer-sign tryflag CFLAGS_AUTO -Werror=pointer-arith +# +# GCC ignores unused arguements by default, but Clang needs this extra +# parameter to stop printing warnings about LDFLAGS passed during +# compiling stage and CFLAGS passed during linking stage. +# +tryflag CFLAGS_AUTO -Qunused-arguments + if test "x$warnings" = xyes ; then tryflag CFLAGS_AUTO -Wall tryflag CFLAGS_AUTO -Wno-parentheses |