hidapi: fix "conversion from 'size_t' to 'int', possible loss of data"#681
hidapi: fix "conversion from 'size_t' to 'int', possible loss of data"#681Youw merged 1 commit intolibusb:masterfrom
Conversation
This warning shows up when building with libusb support using MSVC. Upstreaming of libsdl-org/SDL@1664ac4
cdf7302 to
24542c2
Compare
|
FYI, it looks like your cmake script does not allow for easy building of hidapi with libusb. For this, SDL uses a |
Define what do you expect to be easy. |
|
One more thing - do you thing we could update HIDAPI CI script to catch this/similar issues in the future? |
By easy, I mean the cmake script does need no modifications and can build with libusb support (using a system library) without needing to building libusb yourself. Lines 40 to 48 in 4578ea2 Lines 110 to 130 in 4578ea2 HIDAPI_WITH_LIBUSB is not used on Windows
It works, but you're effectively using a fork and do not use upstream.
Looking at SDL's cmake script, we've added a |
|
Lets continue the CMake conversation at: #682 |
This warning shows up when building with libusb support using MSVC.
Upstreaming of libsdl-org/SDL@1664ac4
libsdl-org/SDL#10199