Core: Fix "LOG_LEVEL_NONE not handled in switch" warning
authorLudovic Rousseau <ludovic.rousseau@gmail.com>
Fri, 1 Jun 2012 09:52:17 +0000 (11:52 +0200)
committerPete Batard <pete@akeo.ie>
Mon, 4 Jun 2012 00:27:11 +0000 (01:27 +0100)
libusb/core.c
libusb/version_nano.h

index 62dd15a..6540fd3 100644 (file)
@@ -1784,7 +1784,7 @@ int usbi_gettimeofday(struct timeval *tp, void *tzp)
 void usbi_log_v(struct libusb_context *ctx, enum usbi_log_level level,
        const char *function, const char *format, va_list args)
 {
-       const char *prefix;
+       const char *prefix = "";
        struct timeval now;
        int global_debug;
        static int has_debug_header_been_displayed = 0;
@@ -1828,6 +1828,8 @@ void usbi_log_v(struct libusb_context *ctx, enum usbi_log_level level,
        case LOG_LEVEL_DEBUG:
                prefix = "debug";
                break;
+       case LOG_LEVEL_NONE:
+               break;
        default:
                prefix = "unknown";
                break;
index b561cf6..9687da3 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10517
+#define LIBUSB_NANO 10518