Selaa lähdekoodia

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

Sam Lantinga 5 vuotta sitten
vanhempi
commit
9891c31ba0
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      include/begin_code.h

+ 3 - 0
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