[gnome-bluetooth] lib: Warning for missing case statements in type_to_string



commit a8e2be9cb386f186894d8f1044f903c83f81aa80
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Dec 10 11:10:53 2013 +0100

    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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-utils.c b/lib/bluetooth-utils.c
index a6ea569..fa1f9c9 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");
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]