diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 15:24:59 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-29 18:56:58 +0200 |
commit | 54e8b9b96e4553b4a05e95612d0a91677e85f9e8 (patch) | |
tree | 94cd99b3f91321b55bf33d015441efcf7e0fc55c /girepository/girepository.c | |
parent | 769f7602dc5762fe1df3c44a0dd2f2b2fcc39dd8 (diff) | |
download | gobject-introspection-54e8b9b96e4553b4a05e95612d0a91677e85f9e8.tar.gz |
build: enable -Wcast-function-type
Where it's easy add dummy args to match the cast; where the target is a subset just
prevent the warning with a cast to void*.
Provide a real copy function for the boxed type code in regress_foo.
This code is never executed afaics, but why not.
Diffstat (limited to 'girepository/girepository.c')
-rw-r--r-- | girepository/girepository.c | 2 |
1 files changed, 1 insertions, 1 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; |