[Commits] [SCM] claws branch, master, updated. 4.1.1-66-gb63e9ce42
mones at claws-mail.org
mones at claws-mail.org
Sat Jun 24 10:51:40 UTC 2023
The branch, master has been updated
via b63e9ce422a818f5f6b60bb24aa4c30e994d7c75 (commit)
from da7ac9b3557560cb9a0033994b6a83e684c336b2 (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 b63e9ce422a818f5f6b60bb24aa4c30e994d7c75
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 ba99e61ba..2a7259675 100644
--- a/src/plugins/gdata/cm_gdata_contacts.c
+++ b/src/plugins/gdata/cm_gdata_contacts.c
@@ -772,13 +772,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 5fe35e6a3..8d8be280c 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -4131,7 +4131,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