summaryrefslogtreecommitdiff
path: root/libusb
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-11-18 12:50:29 +0000
committerPete Batard <pbatard@gmail.com>2010-11-18 12:50:29 +0000
commit11c6f4d4ce75092ef21fd6a961e7dd75d38629ee (patch)
tree6f3154bfc31088787810f14ffa2a6f2d2f7b056e /libusb
parent9ec1bee9fb0f9e0d2bbcd41d6bd47d59164f4d4a (diff)
downloadlibusb-11c6f4d4ce75092ef21fd6a961e7dd75d38629ee.tar.gz
removed "'guid_to_string' defined but not used" warning
* issued in MinGW/cygwin when ENABLE_DEBUG_LOGGING is not set
Diffstat (limited to 'libusb')
-rw-r--r--libusb/os/windows_usb.c2
1 files changed, 2 insertions, 0 deletions
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