diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-08-04 19:08:30 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-08-04 19:08:30 +0200 |
commit | 3103c68210754071b3b7913482e4e8e7339084b0 (patch) | |
tree | e11f766c79def82e6f59ec38583eb9ae95b7eb0b | |
parent | 7be8965225a9fb13469b9d82ad4ddc8f4b9e678a (diff) | |
download | strongswan-3103c68210754071b3b7913482e4e8e7339084b0.tar.bz2 strongswan-3103c68210754071b3b7913482e4e8e7339084b0.tar.xz |
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.
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
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( |