mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
MSVC: Resolve warnings
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
|
||||
namespace icsneo {
|
||||
|
||||
static void AddBuiltInExtensionsTo([[maybe_unused]] const std::shared_ptr<icsneo::Device>& device) {
|
||||
static void AddBuiltInExtensionsTo(const std::shared_ptr<icsneo::Device>& device) {
|
||||
(void)device; // [[maybe_unused]]
|
||||
@LIBICSNEO_EXT_CODE@
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
uint16_t perf_en;
|
||||
@@ -57,8 +62,7 @@ typedef struct {
|
||||
ETHERNET_SETTINGS ethernet;
|
||||
TIMESYNC_ICSHARDWARE_SETTINGS timeSync;
|
||||
STextAPISettings text_api;
|
||||
struct
|
||||
{
|
||||
struct {
|
||||
uint32_t disableUsbCheckOnBoot : 1;
|
||||
uint32_t enableLatencyTest : 1;
|
||||
uint32_t busMessagesToAndroid : 1;
|
||||
@@ -87,6 +91,10 @@ typedef struct {
|
||||
} neovired2_status_t;
|
||||
#pragma pack(pop)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -46,6 +46,11 @@ typedef unsigned __int64 uint64_t;
|
||||
#define IS_64BIT_SYSTEM
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4201) // nameless struct/union
|
||||
#endif
|
||||
|
||||
/* OpenPort "OpenType" Argument Constants -- deprecated, use OpenNeoDevice */
|
||||
#define NEOVI_COMMTYPE_RS232 0
|
||||
#define NEOVI_COMMTYPE_USB_BULK 1
|
||||
@@ -2106,6 +2111,8 @@ typedef struct _stCM_ISO157652_RxMessage
|
||||
{
|
||||
uint16_t vs_netid; /* The netid of the message (determines which network to decode receives), not supported */
|
||||
|
||||
uint8_t reservedPacking;
|
||||
|
||||
uint8_t padding; /* The padding byte to use to fill the unused portion of
|
||||
* transmitted CAN frames (flow control), see paddingEnable. */
|
||||
|
||||
@@ -2495,4 +2502,8 @@ CHECK_STRUCT_SIZE(SRADMoon2Settings);
|
||||
|
||||
#endif /* INTREPID_NO_CHECK_STRUCT_SIZE */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif /* _ICSNVC40_H */
|
||||
|
||||
Reference in New Issue
Block a user