aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
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])],