configure: only try -Qunused-arguments for clang

other compilers don't need this option, but gcc 3 and perhaps others
accept it despite not understanding it, then print warnings about it
at build time.

omitting it when not needed will also help shorten the command lines.
This commit is contained in:
Rich Felker 2018-09-12 22:43:38 -04:00
parent 3e14bbcd19
commit 7634101069
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -507,7 +507,7 @@ tryflag CFLAGS_AUTO -Werror=pointer-arith
# parameter to stop printing warnings about LDFLAGS passed during
# compiling stage and CFLAGS passed during linking stage.
#
tryflag CFLAGS_AUTO -Qunused-arguments
test "$cc_family" = clang && tryflag CFLAGS_AUTO -Qunused-arguments
if test "x$warnings" = xyes ; then
tryflag CFLAGS_AUTO -Wall