libusb: Add missing default in handling option switch

This makes GCC happy

Fixes:  2879c818e5 ("implement libusb_set_option")
Event:  Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation
This commit is contained in:
ShengYi Hung committed 2026-06-23 22:37:53 +08:00
1 parent 25c2251064
commit 08dca5971b
1 file changed
+2
+2
View File
@@ -2115,6 +2115,8 @@ libusb_set_option(libusb_context *ctx, enum libusb_option option, ...)
case LIBUSB_OPTION_LOG_CB:
callback = va_arg(args, libusb_log_cb);
break;
default:
break;
}
if (option >= LIBUSB_OPTION_MAX) {