mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Fix "discards ‘const’ qualifier" warnings
This commit is contained in:
parent
610ab2dafa
commit
9dd836b876
@ -289,7 +289,7 @@ void modules_deinit(void)
|
||||
|
||||
while (list != NULL) {
|
||||
module_uniq_destroy(list->data);
|
||||
gconstpointer tmp = list->data;
|
||||
void *tmp = list->data;
|
||||
list = g_slist_remove(list, list->data);
|
||||
g_free(tmp);
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ static void rawlog_add(RAWLOG_REC *rawlog, char *str)
|
||||
if (rawlog->nlines < rawlog_lines || rawlog_lines <= 2)
|
||||
rawlog->nlines++;
|
||||
else {
|
||||
gconstpointer tmp = rawlog->lines->data;
|
||||
void *tmp = rawlog->lines->data;
|
||||
rawlog->lines = g_slist_remove(rawlog->lines,
|
||||
rawlog->lines->data);
|
||||
g_free(tmp);
|
||||
|
@ -1424,7 +1424,7 @@ void themes_reload(void)
|
||||
change_theme(settings_get_str("theme"), FALSE);
|
||||
|
||||
while (refs != NULL) {
|
||||
gconstpointer tmp = refs->data;
|
||||
void *tmp = refs->data;
|
||||
refs = g_slist_remove(refs, refs->data);
|
||||
theme_unref(tmp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user