From: Martin Willi Date: Thu, 8 May 2014 13:12:06 +0000 (+0200) Subject: configure: Mark conftest variable as unused to pass test with -Werror X-Git-Tag: 5.2.0dr6~24^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab6082a0fec9a5df039fe857a6ac3ca08ecd825;p=thirdparty%2Fstrongswan.git configure: Mark conftest variable as unused to pass test with -Werror When using -Werror, the warning for the unused variable would let the test fail, even if in6addr_any is available. --- diff --git a/configure.ac b/configure.ac index 6e836146b9..e5087d049e 100644 --- a/configure.ac +++ b/configure.ac @@ -609,7 +609,7 @@ AC_COMPILE_IFELSE( [[#include #include #include ]], - [[struct in6_addr in6; + [[struct in6_addr in6 __attribute__((unused)); in6 = in6addr_any;]])], [AC_MSG_RESULT([yes]); AC_DEFINE([HAVE_IN6ADDR_ANY], [], [have struct in6_addr in6addr_any])],