From 11c6f4d4ce75092ef21fd6a961e7dd75d38629ee Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Thu, 18 Nov 2010 12:50:29 +0000 Subject: removed "'guid_to_string' defined but not used" warning * issued in MinGW/cygwin when ENABLE_DEBUG_LOGGING is not set --- libusb/os/windows_usb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libusb') diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 47c6b49..7569b95 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -169,6 +169,7 @@ static inline BOOLEAN guid_eq(const GUID *guid1, const GUID *guid2) { return false; } +#if defined(ENABLE_DEBUG_LOGGING) || defined(INCLUDE_DEBUG_LOGGING) static char* guid_to_string(const GUID* guid) { static char guid_string[MAX_GUID_STRING_LENGTH]; @@ -180,6 +181,7 @@ static char* guid_to_string(const GUID* guid) guid->Data4[4], guid->Data4[5], guid->Data4[6], guid->Data4[7]); return guid_string; } +#endif /* * Converts a windows error to human readable string -- cgit v1.2.1