diff options
author | rbuj <[email protected]> | 2019-03-02 18:20:30 +0100 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-03-28 14:21:01 +0100 |
commit | b0df98a1c2745b20325ae1d70413601dda9b46dd (patch) | |
tree | 5548e03f391640d87eba01ff61e73e4554497a05 /src/core/util.c | |
parent | 83a915dc851f7d3385e0d38f57cc249e038dcd1d (diff) | |
download | marco-b0df98a1c2745b20325ae1d70413601dda9b46dd.tar.bz2 marco-b0df98a1c2745b20325ae1d70413601dda9b46dd.tar.xz |
Fix -Werror=cast-function-type
Bump glib-2 required version to 2.58:
G_SOURCE_FUNC
https://gitlab.gnome.org/GNOME/glib/commit/039fa6897bb4c5cd30caec8ee3add1a4ef612f76
Build & install:i
export CC=gcci
export CFLAGS=-Werror=cast-function-type
./autogen.sh --prefix=/usr
make clean
make
sudo make install
Diffstat (limited to 'src/core/util.c')
-rw-r--r-- | src/core/util.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/util.c b/src/core/util.c index a30707a7..7b5f0803 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -207,10 +207,7 @@ utf8_fputs (const char *str, void meta_free_gslist_and_elements (GSList *list_to_deep_free) { - g_slist_foreach (list_to_deep_free, - (void (*)(gpointer,gpointer))&g_free, /* ew, for ugly */ - NULL); - g_slist_free (list_to_deep_free); + g_slist_free_full (list_to_deep_free, g_free); } #ifdef WITH_VERBOSE_MODE |