diff options
author | Pete Batard <pete@akeo.ie> | 2011-09-19 13:59:46 +0100 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2011-09-22 11:26:18 +0200 |
commit | 85d49b1941e3cb35f504e4449028767ee0c6d0c1 (patch) | |
tree | a7dcc6c659ce5a285bcc3fb018b30b33aa89cd10 | |
parent | 1f7f936a6d40879b56cda709f7af648ece9ac5f1 (diff) | |
download | libusb-85d49b1941e3cb35f504e4449028767ee0c6d0c1.tar.gz |
Windows: fix 'windows_error_str' defined but not used when not logging
-rw-r--r-- | libusb/os/windows_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 5e7beb6..89dc10d 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -140,6 +140,7 @@ static char* guid_to_string(const GUID* guid) * Converts a windows error to human readable string * uses retval as errorcode, or, if 0, use GetLastError() */ +#if defined(ENABLE_LOGGING) static char *windows_error_str(uint32_t retval) { static char err_string[ERR_BUFFER_SIZE]; @@ -170,6 +171,7 @@ static char err_string[ERR_BUFFER_SIZE]; } return err_string; } +#endif /* * Sanitize Microsoft's paths: convert to uppercase, add prefix and fix backslashes. |