summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-12-19 10:37:09 +0000
committerRichard Hughes <richard@hughsie.com>2017-12-19 11:00:35 +0000
commit682a91c4f88bdee3b868fcc90efa699a223120cb (patch)
tree5eb745e05c2139cba4d3b39e9a818831458a8093
parent5f6c65a6e21fc2e7cc3edfa9568f0363837ce55e (diff)
downloadgusb-682a91c4f88bdee3b868fcc90efa699a223120cb.tar.gz
trivial: Fix two -Wswitch-default warnings
-rw-r--r--gusb/gusb-device.c2
-rw-r--r--gusb/gusb-util.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c
index 7367006..d6477e6 100644
--- a/gusb/gusb-device.c
+++ b/gusb/gusb-device.c
@@ -352,6 +352,8 @@ g_usb_device_libusb_error_to_gerror (GUsbDevice *device,
case LIBUSB_ERROR_BUSY:
error_code = G_USB_DEVICE_ERROR_NO_DEVICE;
break;
+ default:
+ break;
}
g_set_error (error, G_USB_DEVICE_ERROR, error_code,
diff --git a/gusb/gusb-util.c b/gusb/gusb-util.c
index eeea84d..fe50b89 100644
--- a/gusb/gusb-util.c
+++ b/gusb/gusb-util.c
@@ -61,6 +61,8 @@ g_usb_strerror (gint error_code)
return "Operation not supported or unimplemented on this platform";
case LIBUSB_ERROR_OTHER:
return "Other error";
+ default:
+ break;
}
return "Unknown error";
}