From 3103c68210754071b3b7913482e4e8e7339084b0 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 4 Aug 2015 19:08:30 +0200 Subject: [PATCH] configure: Explicitly disable unused parameter warnings in qsort_r test When compiling with -Wextra (and without disabling these warnings globally) the tests would otherwise fail due to the unused arguments in the cmp() functions. Fixes #1053. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6b0c56bb5..fed485488 100644 --- a/configure.ac +++ b/configure.ac @@ -553,7 +553,7 @@ AC_CHECK_FUNC( # set -Werror so that we get an error for "argument ... has # incompatible pointer type" warnings save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" + CFLAGS="$CFLAGS -Werror -Wno-unused-parameter" AC_MSG_CHECKING([for GNU-style qsort_r]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM(