RADComet: Suppress C4201 for nameless struct/union
parent
d9bf4f423e
commit
53ba297a44
|
|
@ -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");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue