diff options
| author | ShengYi Hung <aokblast@FreeBSD.org> | 2026-06-23 14:29:57 +0000 |
|---|---|---|
| committer | ShengYi Hung <aokblast@FreeBSD.org> | 2026-06-23 14:37:53 +0000 |
| commit | 08dca5971b08b65f227883502d9bb9f59eebd578 (patch) | |
| tree | c89a0a24fc1cb996f0dc434ce7de58e2ed41d184 | |
| parent | 25c2251064752b0ced310b1ed3795c8a68849b1c (diff) | |
libusb: Add missing default in handling option switch
This makes GCC happy
Fixes: 2879c818e553 ("implement libusb_set_option")
Event: Halifax Hackathon 202606
Sponsored by: The FreeBSD Foundation
| -rw-r--r-- | lib/libusb/libusb10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index 02507110d909..f47b301ea302 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -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) { |
