From 9b525ba69fff75f3a1cbc755b8da285d1f7286cf Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 17 Sep 2013 11:56:34 +0200 Subject: silence several compiler warnings --- src/usb-linux.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/usb-linux.c') diff --git a/src/usb-linux.c b/src/usb-linux.c index 334d967..f937de0 100644 --- a/src/usb-linux.c +++ b/src/usb-linux.c @@ -121,6 +121,9 @@ static void tx_callback(struct libusb_transfer *xfer) usbmuxd_log(LL_ERROR, "TX transfer overflow for device %d-%d", dev->bus, dev->address); break; // and nothing happens (this never gets called) if the device is freed after a disconnect! (bad) + default: + // this should never be reached. + break; } // we can't usb_disconnect here due to a deadlock, so instead mark it as dead and reap it after processing events // we'll do device_remove there too @@ -190,6 +193,9 @@ static void rx_callback(struct libusb_transfer *xfer) usbmuxd_log(LL_ERROR, "RX transfer overflow for device %d-%d", dev->bus, dev->address); break; // and nothing happens (this never gets called) if the device is freed after a disconnect! (bad) + default: + // this should never be reached. + break; } free(xfer->buffer); dev->rx_xfer = NULL; -- cgit v1.1-32-gdbae