From 9dd836b87663929ae540b6b3c724c53b24e512ba Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 24 Aug 2018 02:11:22 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20"discards=20=E2=80=98const=E2=80=99=20qua?= =?UTF-8?q?lifier"=20warnings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/modules.c | 2 +- src/core/rawlog.c | 2 +- src/fe-common/core/themes.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/modules.c b/src/core/modules.c index 4b7a91ca..8439b73d 100644 --- a/src/core/modules.c +++ b/src/core/modules.c @@ -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); } diff --git a/src/core/rawlog.c b/src/core/rawlog.c index da63fa50..e6bb7017 100644 --- a/src/core/rawlog.c +++ b/src/core/rawlog.c @@ -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); diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index cb3a7717..a95f6180 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -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); }