From 0ca8541564d3f6692ff4dc08633171127f5d700b Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 8 May 2014 16:37:48 +0200 Subject: [PATCH] configure: Fix attribute((packed)) test when using -Werror --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e5087d049..20e40327b 100644 --- a/configure.ac +++ b/configure.ac @@ -759,7 +759,8 @@ AC_MSG_CHECKING([for working __attribute__((packed))]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([], [[ struct test { char a; short b; } __attribute__((packed)); - char x[sizeof(struct test) == sizeof(char) + sizeof(short) ? 1 : -1]; + char x[sizeof(struct test) == sizeof(char) + sizeof(short) ? 1 : -1] + __attribute__((unused)); return 0; ]])], [AC_MSG_RESULT([yes])],