mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Resolve relevant Linux compile warnings
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ if(MSVC)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
|
||||||
endif()
|
endif()
|
||||||
else() #if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
else() #if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-unknown-pragmas -Wno-zero-length-array -pedantic")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-switch -Wno-nested-anon-types -Wno-gnu-anonymous-struct -Wno-unknown-pragmas -Wno-zero-length-array")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# libftdi
|
# libftdi
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ int icsneoFindNeoDevices(unsigned long DeviceTypes, NeoDevice* pNeoDevice, int*
|
|||||||
count = bufferSize;
|
count = bufferSize;
|
||||||
*pNumDevices = (int)count;
|
*pNumDevices = (int)count;
|
||||||
|
|
||||||
for(int i = 0; i < count; i++) {
|
for(size_t i = 0; i < count; i++) {
|
||||||
pNeoDevice[i] = OldNeoDeviceFromNew(&devices[i]); // Write out into user memory
|
pNeoDevice[i] = OldNeoDeviceFromNew(&devices[i]); // Write out into user memory
|
||||||
neodevices[uint64_t(devices[i].handle) << 32 | icsneo_serialStringToNum(devices[i].serial)] = devices[i]; // Fill the look up table
|
neodevices[uint64_t(devices[i].handle) << 32 | icsneo_serialStringToNum(devices[i].serial)] = devices[i]; // Fill the look up table
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ private:
|
|||||||
uint16_t cpuMipsL;
|
uint16_t cpuMipsL;
|
||||||
uint16_t busVoltage;
|
uint16_t busVoltage;
|
||||||
uint16_t deviceTemperature;
|
uint16_t deviceTemperature;
|
||||||
} CoreMiniMsgResetStatus;
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user