configure: Explicitly disable unused parameter warnings in qsort_r test
authorTobias Brunner <tobias@strongswan.org>
Tue, 4 Aug 2015 17:08:30 +0000 (19:08 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 4 Aug 2015 17:08:30 +0000 (19:08 +0200)
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

index 6b0c56b..fed4854 100644 (file)
@@ -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(