[PATCH] configure: Check for -Wno-pragma-pack

Martin Storsjo martin at martin.st
Sun Jan 21 16:05:35 CST 2018


Recent clang versions warn if an include file changes the pragma
pack level without restoring it before the end of the include file.

This avoids warnings for each include of pshpack*.h/poppack.h.

Signed-off-by: Martin Storsjo <martin at martin.st>
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 25d88d8..018b122 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1853,6 +1853,7 @@ then
   WINE_TRY_CFLAGS([-Wempty-body])
   WINE_TRY_CFLAGS([-Wignored-qualifiers])
   WINE_TRY_CFLAGS([-Wno-packed-not-aligned])
+  WINE_TRY_CFLAGS([-Wno-pragma-pack])
   WINE_TRY_CFLAGS([-Wshift-overflow=2])
   WINE_TRY_CFLAGS([-Wstrict-prototypes])
   WINE_TRY_CFLAGS([-Wtype-limits])
-- 
2.7.4




More information about the wine-devel mailing list