RADComet: Suppress C4201 for nameless struct/union

pull/64/head
Kyle Schwarz 2024-04-17 14:35:40 -04:00
parent d9bf4f423e
commit 53ba297a44
1 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,11 @@ namespace icsneo {
#endif #endif
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4201) // nameless struct/union
#endif
#pragma pack(push, 2) #pragma pack(push, 2)
typedef struct { typedef struct {
// ECU ID used in CAN communications. // ECU ID used in CAN communications.
@ -69,6 +74,10 @@ typedef struct {
} radcomet_settings_t; } radcomet_settings_t;
#pragma pack(pop) #pragma pack(pop)
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#ifdef __cplusplus #ifdef __cplusplus
static_assert(sizeof(radcomet_settings_t) == 466, "RADComet settings size mismatch"); static_assert(sizeof(radcomet_settings_t) == 466, "RADComet settings size mismatch");