Fixed bug 4641 - clang and clang-cl builds on windows create -Wpragma-pack warnings
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Jun 2019 08:46:20 -0700
changeset 12813dbc1fc3b74b1
parent 12812 4f015bc7cbb1
child 12814 cee49246e1bc
Fixed bug 4641 - clang and clang-cl builds on windows create -Wpragma-pack warnings
include/begin_code.h
     1.1 --- a/include/begin_code.h	Sun Jun 09 19:27:25 2019 -0400
     1.2 +++ b/include/begin_code.h	Mon Jun 10 08:46:20 2019 -0700
     1.3 @@ -105,6 +105,9 @@
     1.4  #ifdef _MSC_VER
     1.5  #pragma warning(disable: 4103)
     1.6  #endif
     1.7 +#ifdef __clang__
     1.8 +#pragma clang diagnostic ignored "-Wpragma-pack"
     1.9 +#endif
    1.10  #ifdef __BORLANDC__
    1.11  #pragma nopackwarning
    1.12  #endif