[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-35
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-359-g6c3e749 |
Date: |
Fri, 24 Feb 2012 11:49:53 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 6c3e7490c8004d19173f528bcaa473aa6a894588 (commit)
from a9da7ed792f8c32ae0e11cfc23c93253ec30f2e5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=6c3e7490c8004d19173f528bcaa473aa6a894588
commit 6c3e7490c8004d19173f528bcaa473aa6a894588
Author: Daniele Forsi <address@hidden>
Date: Fri Feb 24 12:48:52 2012 +0100
Add missing cases to switch statements
Fixes:
common/gsm-common.c: In function âgn_memory_type2strâ:
common/gsm-common.c:83: warning: enumeration value âGN_MT_XXâ not
handled in switch
common/gsm-common.c: In function âgn_memory_type_printâ:
common/gsm-common.c:133: warning: enumeration value âGN_MT_XXâ not
handled in switch
common/gsm-common.c: In function âgn_power_source2strâ:
common/gsm-common.c:203: warning: enumeration value âGN_PS_UNKNOWNâ not
handled in switch
common/gsm-common.c: In function âgn_phonebook_entry_type2strâ:
common/gsm-common.c:243: warning: enumeration value
âGN_PHONEBOOK_ENTRY_Videoâ not handled in switch
common/gsm-common.c: In function âgn_subentrytype2stringâ:
common/gsm-common.c:282: warning: enumeration value
âGN_PHONEBOOK_ENTRY_Videoâ not handled in switch
common/gsm-common.c: In function âgn_sms_message_status2strâ:
common/gsm-common.c:389: warning: enumeration value âGN_SMS_Unknownâ
not handled in switch
common/gsm-common.c: In function âgn_call_divert_type2strâ:
common/gsm-common.c:604: warning: enumeration value
âGN_CDV_Unconditionalâ not handled in switch
diff --git a/common/gsm-common.c b/common/gsm-common.c
index 0de842b..de61b07 100644
--- a/common/gsm-common.c
+++ b/common/gsm-common.c
@@ -123,6 +123,7 @@ GNOKII_API const char *gn_memory_type2str(gn_memory_type mt)
X(F19);
X(F20);
X(BM);
+ X(XX);
}
return NULL;
#undef X
@@ -173,6 +174,7 @@ GNOKII_API const char *gn_memory_type_print(gn_memory_type
mt)
case GN_MT_F19: return _("SMS Folder 19");
case GN_MT_F20: return _("SMS Folder 20");
case GN_MT_BM: return _("Cell Broadcast");
+ case GN_MT_XX: return _("Unknown");
}
return _("Unknown");
}
@@ -201,6 +203,7 @@ GNOKII_API const char
*gn_connection_type2str(gn_connection_type t)
GNOKII_API const char *gn_power_source2str(gn_power_source s)
{
switch (s) {
+ case GN_PS_UNKNOWN: return _("Unknown");
case GN_PS_ACDC: return _("AC-DC");
case GN_PS_BATTERY: return _("Battery");
case GN_PS_NOBATTERY: return _("No battery");
@@ -273,6 +276,7 @@ GNOKII_API const char
*gn_phonebook_entry_type2str(gn_phonebook_entry_type t)
case GN_PHONEBOOK_ENTRY_Nickname: return _("Nickname");
case GN_PHONEBOOK_ENTRY_Birthday: return _("Birthday");
case GN_PHONEBOOK_ENTRY_ExtGroup: return _("Caller group
id");
+ case GN_PHONEBOOK_ENTRY_Video: return _("Video");
}
return _("Unknown");
}
@@ -311,6 +315,7 @@ GNOKII_API const char
*gn_subentrytype2string(gn_phonebook_entry_type entry_type
case GN_PHONEBOOK_ENTRY_Nickname:
case GN_PHONEBOOK_ENTRY_Birthday:
case GN_PHONEBOOK_ENTRY_ExtGroup:
+ case GN_PHONEBOOK_ENTRY_Video:
return gn_phonebook_entry_type2str(entry_type);
case GN_PHONEBOOK_ENTRY_Number:
switch (number_type) {
@@ -387,6 +392,7 @@ GNOKII_API const char
*gn_sms_message_type2str(gn_sms_message_type t)
GNOKII_API const char *gn_sms_message_status2str(gn_sms_message_status t)
{
switch (t) {
+ case GN_SMS_Unknown: return _("Unknown");
case GN_SMS_Read: return _("Read");
case GN_SMS_Unread: return _("Unread");
case GN_SMS_Sent: return _("Sent");
@@ -602,6 +608,7 @@ GNOKII_API const char
*gn_profile_volume_type2str(gn_profile_volume_type p)
GNOKII_API const char *gn_call_divert_type2str(gn_call_divert_type p)
{
switch (p) {
+ case GN_CDV_Unconditional: return _("Unconditional");
case GN_CDV_Busy: return _("Busy");
case GN_CDV_NoAnswer: return _("No answer");
case GN_CDV_OutOfReach: return _("Out of reach");
-----------------------------------------------------------------------
Summary of changes:
common/gsm-common.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-359-g6c3e749,
Daniele Forsi <=