From 7884bcc21d5aff8f72813fda6d0eb6e44130818a Mon Sep 17 00:00:00 2001 From: Megamouse Date: Thu, 1 Aug 2024 01:21:28 +0200 Subject: [PATCH] Fix unused function warning --- rpcs3/Emu/Cell/lv2/sys_usbd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rpcs3/Emu/Cell/lv2/sys_usbd.cpp b/rpcs3/Emu/Cell/lv2/sys_usbd.cpp index 3c54bb0a91..a47fe1b108 100644 --- a/rpcs3/Emu/Cell/lv2/sys_usbd.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_usbd.cpp @@ -177,6 +177,7 @@ void LIBUSB_CALL callback_transfer(struct libusb_transfer* 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) { if (!str) @@ -202,6 +203,7 @@ static void LIBUSB_CALL log_cb(libusb_context* /*ctx*/, enum libusb_log_level le break; } } +#endif usb_handler_thread::usb_handler_thread() {