Samples: Fix not handled in switch warning in xusb.c
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>
Fri, 20 Apr 2012 09:36:07 +0000 (11:36 +0200)
committerPete Batard <pete@akeo.ie>
Fri, 20 Apr 2012 21:35:38 +0000 (22:35 +0100)
xusb.c: In function ‘test_device’:
xusb.c:722:2: warning: enumeration value ‘USE_GENERIC’ not handled in switch [-Wswitch-enum]

examples/xusb.c
libusb/version.h

index 07935d4..343a0b4 100644 (file)
@@ -731,7 +731,7 @@ static int test_device(uint16_t vid, uint16_t pid)
                break;
        case USE_SCSI:
                CALL_CHECK(test_mass_storage(handle, endpoint_in, endpoint_out));
-       default:
+       case USE_GENERIC:
                break;
        }
 
index 3347697..6a8b151 100644 (file)
@@ -9,7 +9,7 @@
 #define LIBUSB_MICRO 10
 #endif
 #ifndef LIBUSB_NANO
-#define LIBUSB_NANO 10481
+#define LIBUSB_NANO 10482
 #endif
 /* LIBUSB_RC is the release candidate suffix. Should normally be empty. */
 #ifndef LIBUSB_RC