mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Build: Resolve warnings
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#include "icsneo/communication/packet/ethphyregpacket.h"
|
||||
#include "icsneo/communication/message/message.h"
|
||||
#include "icsneo/communication/packet.h"
|
||||
#include "icsneo/api/eventmanager.h"
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -126,6 +126,8 @@ public:
|
||||
static std::vector<ChipInfo> chips = {{ChipID::RADBMS_MCHIP, true, "MCHIP", "rad_bms_mchip_WIL_3_3_0_27_ief", 0, FirmwareType::IEF}};
|
||||
return chips;
|
||||
}
|
||||
case FirmwareVariant::Invalid:
|
||||
break; // invalid will be handled below
|
||||
}
|
||||
// Return empty chip information if the WIL version is not set
|
||||
static std::vector<ChipInfo> chips = {};
|
||||
|
||||
@@ -44,7 +44,10 @@ typedef unsigned __int64 uint64_t;
|
||||
#include "cicsSpyStatusBits.h"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable : 4200)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4200) // zero-sized array in struct/union
|
||||
#pragma warning(disable : 4201) // nameless struct/union
|
||||
#pragma warning(disable : 4121) // member alignment sensitive to packing
|
||||
#endif
|
||||
|
||||
// MSVC++ 10.0 _MSC_VER == 1600 64-bit version doesn't allow multi-line #if directives...
|
||||
@@ -5440,4 +5443,8 @@ CHECK_STRUCT_SIZE(FlashAccessoryFirmwareParams);
|
||||
#undef CHECK_STRUCT_SIZE
|
||||
#endif /* INTREPID_NO_CHECK_STRUCT_SIZE */
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif /* _ICSNVC40_H */
|
||||
|
||||
Reference in New Issue
Block a user