From a8e2be9cb386f186894d8f1044f903c83f81aa80 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 10 Dec 2013 11:10:53 +0100 Subject: lib: Warning for missing case statements in type_to_string To make sure we see warnings when new device types are added, remove the default case in the switch. --- lib/bluetooth-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/bluetooth-utils.c') diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c index a6ea5696..fa1f9c97 100644 --- a/lib/bluetooth-utils.c +++ b/lib/bluetooth-utils.c @@ -86,9 +86,9 @@ bluetooth_type_to_string (BluetoothType type) return _("Tablet"); case BLUETOOTH_TYPE_VIDEO: return _("Video device"); - default: - return _("Unknown"); } + + return _("Unknown"); } /** -- cgit v1.2.1