summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau+github@gmail.com>2012-04-20 11:36:07 +0200
committerPete Batard <pete@akeo.ie>2012-04-20 22:35:38 +0100
commit29d66c1554e8db47fbe6079cba48a38984318049 (patch)
tree1157fa29f6c6d7273c3b9971e560ac5d496e5480
parentd2b7b9f78e913dfc415d6acf65e5b8fd8a04027b (diff)
downloadlibusb-29d66c1554e8db47fbe6079cba48a38984318049.tar.gz
Samples: Fix not handled in switch warning in xusb.c
xusb.c: In function ‘test_device’: xusb.c:722:2: warning: enumeration value ‘USE_GENERIC’ not handled in switch [-Wswitch-enum]
-rw-r--r--examples/xusb.c2
-rw-r--r--libusb/version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index 07935d4..343a0b4 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -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;
}
diff --git a/libusb/version.h b/libusb/version.h
index 3347697..6a8b151 100644
--- a/libusb/version.h
+++ b/libusb/version.h
@@ -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