windows: Silence warnings when building without logging

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
This commit is contained in:
Tormod Volden
2022-09-04 15:32:19 +02:00
parent be33e58489
commit f3619c4078
3 changed files with 7 additions and 1 deletions

View File

@@ -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)) {

View File

@@ -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 (;;) {

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11747
#define LIBUSB_NANO 11748