1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Fix "discards ‘const’ qualifier" warnings

This commit is contained in:
dequis 2018-08-24 02:11:22 -03:00
parent 610ab2dafa
commit 9dd836b876
3 changed files with 3 additions and 3 deletions

View File

@ -289,7 +289,7 @@ void modules_deinit(void)
while (list != NULL) { while (list != NULL) {
module_uniq_destroy(list->data); module_uniq_destroy(list->data);
gconstpointer tmp = list->data; void *tmp = list->data;
list = g_slist_remove(list, list->data); list = g_slist_remove(list, list->data);
g_free(tmp); g_free(tmp);
} }

View File

@ -64,7 +64,7 @@ static void rawlog_add(RAWLOG_REC *rawlog, char *str)
if (rawlog->nlines < rawlog_lines || rawlog_lines <= 2) if (rawlog->nlines < rawlog_lines || rawlog_lines <= 2)
rawlog->nlines++; rawlog->nlines++;
else { else {
gconstpointer tmp = rawlog->lines->data; void *tmp = rawlog->lines->data;
rawlog->lines = g_slist_remove(rawlog->lines, rawlog->lines = g_slist_remove(rawlog->lines,
rawlog->lines->data); rawlog->lines->data);
g_free(tmp); g_free(tmp);

View File

@ -1424,7 +1424,7 @@ void themes_reload(void)
change_theme(settings_get_str("theme"), FALSE); change_theme(settings_get_str("theme"), FALSE);
while (refs != NULL) { while (refs != NULL) {
gconstpointer tmp = refs->data; void *tmp = refs->data;
refs = g_slist_remove(refs, refs->data); refs = g_slist_remove(refs, refs->data);
theme_unref(tmp); theme_unref(tmp);
} }