configure: Fix attribute((packed)) test when using -Werror

This commit is contained in:
Martin Willi 2014-05-08 16:37:48 +02:00
parent 3ab6082a0f
commit 0ca8541564
1 changed files with 2 additions and 1 deletions

View 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])],