Skip to content
Commit 50cfb1af authored by Han Han's avatar Han Han Committed by Victor Toso
Browse files

Fix libusb-1.0.22 deprecated libusb_set_debug

Since libusb-1.0.22, libusb_set_debug is deprecated and replaced with
libusb_set_option.

Details:
https://github.com/libusb/libusb/commit/539f22e2fd916558d11ab9a66f10f461c5593168



Compiling error:
usbredirhost.c: In function ‘usbredirhost_open_full’:
usbredirhost.c:753:5: error: ‘libusb_set_debug’ is deprecated: Use
libusb_set_option instead [-Werror=deprecated-declarations]
     libusb_set_debug(host->ctx, host->verbose);
     ^~~~~~~~~~~~~~~~

Signed-off-by: default avatarHan Han <hhan@redhat.com>
Acked-by: default avatarJonathon Jongsma <jjongsma@redhat.com>
parent aca0e87d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment