Date: Tue, 23 Jun 2026 14:38:01 +0000 From: ShengYi Hung <aokblast@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 08dca5971b08 - main - libusb: Add missing default in handling option switch Message-ID: <6a3a9a49.193e5.1ec1388f@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=08dca5971b08b65f227883502d9bb9f59eebd578 commit 08dca5971b08b65f227883502d9bb9f59eebd578 Author: ShengYi Hung <aokblast@FreeBSD.org> AuthorDate: 2026-06-23 14:29:57 +0000 Commit: ShengYi Hung <aokblast@FreeBSD.org> 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) {home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3a9a49.193e5.1ec1388f>
