diff options
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r-- | libusb/libusbi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index 6cc36bd..2c574d3 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -91,7 +91,11 @@ extern "C" { #define USBI_LOG_LINE_END "\n" /* The following is used to silence warnings for unused variables */ -#define UNUSED(var) do { (void)(var); } while(0) +#if defined(UNREFERENCED_PARAMETER) +#define UNUSED(var) UNREFERENCED_PARAMETER(var) +#else +#define UNUSED(var) do { (void)(var); } while(0) +#endif #if !defined(ARRAYSIZE) #define ARRAYSIZE(array) (sizeof(array) / sizeof(array[0])) |