The branch main has been updated by aokblast:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=08dca5971b08b65f227883502d9bb9f59eebd578

commit 08dca5971b08b65f227883502d9bb9f59eebd578
Author:     ShengYi Hung <[email protected]>
AuthorDate: 2026-06-23 14:29:57 +0000
Commit:     ShengYi Hung <[email protected]>
CommitDate: 2026-06-23 14:37:53 +0000

    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
---
 lib/libusb/libusb10.c | 2 ++
 1 file changed, 2 insertions(+)

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) {

Reply via email to