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
This commit is contained in:
Ricardo Mones 2023-06-24 12:50:32 +02:00
parent da7ac9b355
commit b63e9ce422
2 changed files with 5 additions and 5 deletions

View file

@ -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);
}
}

View file

@ -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;