Commit 9891c31ba07a9ba6d7db90e9d5bbb598edcf8a68

Sam Lantinga 2019-06-10T08:46:20

Fixed bug 4641 - clang and clang-cl builds on windows create -Wpragma-pack warnings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/begin_code.h b/include/begin_code.h
index 4a6ae20..22c997c 100644
--- a/include/begin_code.h
+++ b/include/begin_code.h
@@ -105,6 +105,9 @@
 #ifdef _MSC_VER
 #pragma warning(disable: 4103)
 #endif
+#ifdef __clang__
+#pragma clang diagnostic ignored "-Wpragma-pack"
+#endif
 #ifdef __BORLANDC__
 #pragma nopackwarning
 #endif