summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girepository.c2
-rw-r--r--girepository/gitypelib.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/girepository/girepository.c b/girepository/girepository.c
index 10282c72..6ffb3aa8 100644
--- a/girepository/girepository.c
+++ b/girepository/girepository.c
@@ -1362,7 +1362,7 @@ find_namespace_latest (const gchar *namespace,
*path_ret = elected->path;
*version_ret = elected->version;
g_slice_free (struct NamespaceVersionCandidadate, elected); /* just free the container */
- g_slist_foreach (candidates, (GFunc) free_candidate, NULL);
+ g_slist_foreach (candidates, (GFunc) (void *) free_candidate, NULL);
g_slist_free (candidates);
}
return result;
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c
index f2b20607..1e33c6af 100644
--- a/girepository/gitypelib.c
+++ b/girepository/gitypelib.c
@@ -2455,7 +2455,7 @@ g_typelib_free (GITypelib *typelib)
g_free (typelib->data);
if (typelib->modules)
{
- g_list_foreach (typelib->modules, (GFunc) g_module_close, NULL);
+ g_list_foreach (typelib->modules, (GFunc) (void *) g_module_close, NULL);
g_list_free (typelib->modules);
}
g_slice_free (GITypelib, typelib);