Fix unused function warning

This commit is contained in:
Megamouse 2024-08-01 01:21:28 +02:00
parent 7ebfe5ce69
commit 7884bcc21d

View file

@ -177,6 +177,7 @@ void LIBUSB_CALL callback_transfer(struct libusb_transfer* transfer)
usbh.transfer_complete(transfer); usbh.transfer_complete(transfer);
} }
#if LIBUSB_API_VERSION >= 0x0100010A
static void LIBUSB_CALL log_cb(libusb_context* /*ctx*/, enum libusb_log_level level, const char* str) static void LIBUSB_CALL log_cb(libusb_context* /*ctx*/, enum libusb_log_level level, const char* str)
{ {
if (!str) if (!str)
@ -202,6 +203,7 @@ static void LIBUSB_CALL log_cb(libusb_context* /*ctx*/, enum libusb_log_level le
break; break;
} }
} }
#endif
usb_handler_thread::usb_handler_thread() usb_handler_thread::usb_handler_thread()
{ {