From f8c37da731af9f6cd74e7a0ef08fa02059d981ac Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 8 Jul 2010 11:39:07 +0100 Subject: Fix missing entries in switch statements Added missing default cases and missing enum cases. --- libempathy/empathy-utils.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libempathy/empathy-utils.c') diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c index b47987f85..fdc5b465d 100644 --- a/libempathy/empathy-utils.c +++ b/libempathy/empathy-utils.c @@ -254,6 +254,7 @@ empathy_presence_get_default_message (TpConnectionPresenceType presence) return _("Unknown"); case TP_CONNECTION_PRESENCE_TYPE_UNSET: case TP_CONNECTION_PRESENCE_TYPE_ERROR: + default: return NULL; } @@ -643,6 +644,12 @@ empathy_connect_new_account (TpAccount *account, g_free (message); break; + case TP_CONNECTION_PRESENCE_TYPE_AVAILABLE: + case TP_CONNECTION_PRESENCE_TYPE_AWAY: + case TP_CONNECTION_PRESENCE_TYPE_EXTENDED_AWAY: + case TP_CONNECTION_PRESENCE_TYPE_HIDDEN: + case TP_CONNECTION_PRESENCE_TYPE_BUSY: + case TP_CONNECTION_PRESENCE_TYPE_ERROR: default: /* do nothing if the presence is not offline */ break; -- cgit v1.2.3