From 2b819065add7dfc6886313e23829c9af76664e10 Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Tue, 26 Apr 2022 11:37:49 -0400 Subject: [PATCH] WiVICommandPacket: Disable MSVC struct warnings --- include/icsneo/communication/packet/wivicommandpacket.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/icsneo/communication/packet/wivicommandpacket.h b/include/icsneo/communication/packet/wivicommandpacket.h index ff2fd1f..e75dd23 100644 --- a/include/icsneo/communication/packet/wivicommandpacket.h +++ b/include/icsneo/communication/packet/wivicommandpacket.h @@ -8,6 +8,9 @@ #include #pragma pack(push,2) +#pragma warning(push) +#pragma warning(disable: 4201) // nonstandard extension used: nameless struct/union +#pragma warning(disable: 4200) // nonstandard extension used: zero-sized array in struct/union namespace icsneo { @@ -124,6 +127,7 @@ struct CommandPacket { } // namespace icsneo +#pragma warning(pop) #pragma pack(pop) #endif // __cplusplus