Revert "core: Remove select case not possibly reached"
This reverts commit cd8078db, which although it made a static analyzer
happy, unfortunately got compilers to complain (with -Wswitch-enum
enabled).
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
diff --git a/libusb/core.c b/libusb/core.c
index b527d18..8bcfcfe 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -2363,6 +2363,8 @@
case LIBUSB_OPTION_LOG_CB:
libusb_set_log_cb_internal(ctx, log_cb, LIBUSB_LOG_CB_CONTEXT);
break;
+
+ case LIBUSB_OPTION_MAX: /* unreachable */
default:
r = LIBUSB_ERROR_INVALID_PARAM;
}
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 496f04b..89087c5 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11817
+#define LIBUSB_NANO 11818