From 3ab6082a0fec9a5df039fe857a6ac3ca08ecd825 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 8 May 2014 15:12:06 +0200 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6e836146b..e5087d049 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])],