RADComet: Suppress C4201 for nameless struct/union
parent
d9bf4f423e
commit
53ba297a44
|
|
@ -10,6 +10,11 @@ namespace icsneo {
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4201) // nameless struct/union
|
||||
#endif
|
||||
|
||||
#pragma pack(push, 2)
|
||||
typedef struct {
|
||||
// ECU ID used in CAN communications.
|
||||
|
|
@ -69,6 +74,10 @@ typedef struct {
|
|||
} radcomet_settings_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
static_assert(sizeof(radcomet_settings_t) == 466, "RADComet settings size mismatch");
|
||||
|
|
|
|||
Loading…
Reference in New Issue