mirror of https://github.com/libsdl-org/SDL.git
hidapi/libusb: disable C5287 warning in MSVC builds
A quick search implies that it is a bogus warning: https://www.google.com/search?q=visual+studio+C5287
This commit is contained in:
parent
7d9fd48557
commit
81e3066303
|
|
@ -71,6 +71,11 @@ extern "C" {
|
||||||
#define DETACH_KERNEL_DRIVER
|
#define DETACH_KERNEL_DRIVER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:5287) /* operands are different enum types */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Uncomment to enable the retrieval of Usage and Usage Page in
|
/* Uncomment to enable the retrieval of Usage and Usage Page in
|
||||||
hid_enumerate(). Warning, on platforms different from FreeBSD
|
hid_enumerate(). Warning, on platforms different from FreeBSD
|
||||||
this is very invasive as it requires the detach
|
this is very invasive as it requires the detach
|
||||||
|
|
@ -2144,6 +2149,10 @@ uint16_t get_usb_code_for_current_locale(void)
|
||||||
return 0x0;
|
return 0x0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning (pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue