From fc4bb1230ea04ba36b98d28014599448baa82e90 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 30 Dec 2009 19:57:47 -0800 Subject: [PATCH] Configure check for -Wno-unused-parameter now tries to link too. --- configure.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 347168a8..9de88d15 100644 --- a/configure.in +++ b/configure.in @@ -1012,7 +1012,7 @@ if test x"$enable_acl_support" = x"no" -o x"$enable_xattr_support" = x"no" -o x" AC_MSG_CHECKING([whether $CC supports -Wno-unused-parameter]) OLD_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wno-unused-parameter" - AC_COMPILE_IFELSE([ ], [rsync_warn_flag=yes], [rsync_warn_flag=no]) + AC_TRY_LINK([#include ], [printf("hello\n");], [rsync_warn_flag=yes], [rsync_warn_flag=no]) AC_MSG_RESULT([$rsync_warn_flag]) if test x"$rsync_warn_flag" = x"no"; then CFLAGS="$OLD_CFLAGS" -- 2.34.1