We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9fd48 commit 81e3066Copy full SHA for 81e3066
src/hidapi/libusb/hid.c
@@ -71,6 +71,11 @@ extern "C" {
71
#define DETACH_KERNEL_DRIVER
72
#endif
73
74
+#if defined(_MSC_VER)
75
+#pragma warning(push)
76
+#pragma warning(disable:5287) /* operands are different enum types */
77
+#endif
78
+
79
/* Uncomment to enable the retrieval of Usage and Usage Page in
80
hid_enumerate(). Warning, on platforms different from FreeBSD
81
this is very invasive as it requires the detach
@@ -2144,6 +2149,10 @@ uint16_t get_usb_code_for_current_locale(void)
2144
2149
return 0x0;
2145
2150
}
2146
2151
2152
2153
+#pragma warning (pop)
2154
2155
2147
2156
#ifdef __cplusplus
2148
2157
2158
0 commit comments