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:
parent
610ab2dafa
commit
9dd836b876
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user