mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
RADComet: Suppress C4201 for nameless struct/union
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user