WiVICommandPacket: Only disable warnings for MSVC

This addresses a warning in GCC and Clang
This commit is contained in:
Paul Hollinsky
2022-06-07 13:48:51 +00:00
parent a928a1d879
commit d6d34eb7bc
@@ -9,9 +9,11 @@
#include <memory> #include <memory>
#pragma pack(push,2) #pragma pack(push,2)
#ifdef _MSC_VER
#pragma warning(push) #pragma warning(push)
#pragma warning(disable: 4201) // nonstandard extension used: nameless struct/union #pragma warning(disable: 4201) // nonstandard extension used: nameless struct/union
#pragma warning(disable: 4200) // nonstandard extension used: zero-sized array in struct/union #pragma warning(disable: 4200) // nonstandard extension used: zero-sized array in struct/union
#endif // _MSC_VER
namespace icsneo { namespace icsneo {
@@ -146,7 +148,9 @@ struct CommandPacket {
} // namespace icsneo } // namespace icsneo
#ifdef _MSC_VER
#pragma warning(pop) #pragma warning(pop)
#endif // _MSC_VER
#pragma pack(pop) #pragma pack(pop)
#endif // __cplusplus #endif // __cplusplus