From 7634101069db26b003adeec09c6aa14646363557 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 12 Sep 2018 22:43:38 -0400 Subject: 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. --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 6e489a1d..de2add15 100755 --- a/configure +++ b/configure @@ -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 -- cgit v1.2.1