configure: Fix attribute((packed)) test when using -Werror
authorMartin Willi <martin@revosec.ch>
Thu, 8 May 2014 14:37:48 +0000 (16:37 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:13 +0000 (15:53 +0200)
configure.ac

index e5087d0..20e4032 100644 (file)
@@ -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])],