[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-53-g4e413c136
mones at claws-mail.org
mones at claws-mail.org
Sat Jun 24 10:51:40 UTC 2023
The branch, gtk2 has been updated
via 4e413c136fa568a70b05a5491a533ad0b19ae388 (commit)
from 707b423521a72486f41599033d9fae96e1949860 (commit)
Summary of changes:
src/plugins/gdata/cm_gdata_contacts.c | 8 ++++----
src/prefs_account.c | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 4e413c136fa568a70b05a5491a533ad0b19ae388
Author: Ricardo Mones <ricardo at mones.org>
Date: Sat Jun 24 12:50:32 2023 +0200
Fix five constness related warnings
prefs_account.c:4134:17: warning: assignment discards ‘const’ qualifier from pointer target type
cm_gdata_contacts.c:7xx:34: warning: passing argument 1 of 'g_free' discards 'const' qualifier from pointer target type
diff --git a/src/plugins/gdata/cm_gdata_contacts.c b/src/plugins/gdata/cm_gdata_contacts.c
index 27234d525..fc85a2403 100644
--- a/src/plugins/gdata/cm_gdata_contacts.c
+++ b/src/plugins/gdata/cm_gdata_contacts.c
@@ -770,13 +770,13 @@ void cm_gdata_load_contacts_cache_from_file(void)
debug_print("Ignored contact without email address: %s\n", cached_contact->full_name ? cached_contact->full_name : "(null)");
/* Not added to list: return allocated memory */
if (cached_contact->full_name)
- g_free(cached_contact->full_name);
+ g_free((gchar *) cached_contact->full_name);
if (cached_contact->given_name)
- g_free(cached_contact->given_name);
+ g_free((gchar *) cached_contact->given_name);
if (cached_contact->family_name)
- g_free(cached_contact->family_name);
+ g_free((gchar *) cached_contact->family_name);
if (cached_contact->address)
- g_free(cached_contact->address);
+ g_free((gchar *) cached_contact->address);
g_free(cached_contact);
}
}
diff --git a/src/prefs_account.c b/src/prefs_account.c
index 69744d4ad..049bc475a 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -4181,7 +4181,7 @@ static void register_send_page(void)
static gchar *path[3];
path[0] = _("Account");
- path[1] = C_("Preferences menu item", "Send");
+ path[1] = (gchar *) C_("Preferences menu item", "Send");
path[2] = NULL;
send_page.page.path = path;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list