mirror of
https://github.com/shadps4-emu/ext-libusb.git
synced 2026-01-31 00:55:21 +01:00
windows: Silence warnings when building without logging
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
This commit is contained in:
@@ -331,6 +331,9 @@ static enum windows_version get_windows_version(void)
|
||||
const char *w, *arch;
|
||||
bool ws;
|
||||
|
||||
#ifndef ENABLE_LOGGING
|
||||
UNUSED(w); UNUSED(arch);
|
||||
#endif
|
||||
memset(&vi, 0, sizeof(vi));
|
||||
vi.dwOSVersionInfoSize = sizeof(vi);
|
||||
if (!GetVersionExA((OSVERSIONINFOA *)&vi)) {
|
||||
|
||||
@@ -263,6 +263,9 @@ static int get_interface_details(struct libusb_context *ctx, HDEVINFO dev_info,
|
||||
char guid_string[MAX_GUID_STRING_LENGTH];
|
||||
DWORD size;
|
||||
|
||||
#ifndef ENABLE_LOGGING
|
||||
UNUSED(*guid_string);
|
||||
#endif
|
||||
dev_info_data->cbSize = sizeof(SP_DEVINFO_DATA);
|
||||
dev_interface_data.cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
|
||||
for (;;) {
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11747
|
||||
#define LIBUSB_NANO 11748
|
||||
|
||||
Reference in New Issue
Block a user