summaryrefslogtreecommitdiff
path: root/libyelp/yelp-simple-document.c
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-05-18 09:56:16 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-05-18 09:57:38 -0500
commitb8fdfcae060bdffb15d81e68cdff011105013eb0 (patch)
tree14736794d498fc4f0ea9b085f59177fad9d33994 /libyelp/yelp-simple-document.c
parent0caa15097ab7595b6a5031ccf1fb75ffb8929d0f (diff)
downloadyelp-b8fdfcae060bdffb15d81e68cdff011105013eb0.tar.gz
Fix build with GCC 8
Yelp enables -Werror by default, so it's responsible for predicting and fixing future compiler warnings that only an oracle could know about. In this case, that turned out to be -Werror=cast-function-type.
Diffstat (limited to 'libyelp/yelp-simple-document.c')
-rw-r--r--libyelp/yelp-simple-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libyelp/yelp-simple-document.c b/libyelp/yelp-simple-document.c
index 501d7881..595efa83 100644
--- a/libyelp/yelp-simple-document.c
+++ b/libyelp/yelp-simple-document.c
@@ -131,7 +131,7 @@ yelp_simple_document_dispose (GObject *object)
YelpSimpleDocument *document = YELP_SIMPLE_DOCUMENT (object);
if (document->priv->reqs) {
- g_slist_foreach (document->priv->reqs, (GFunc) request_try_free, NULL);
+ g_slist_foreach (document->priv->reqs, (GFunc)(GCallback) request_try_free, NULL);
g_slist_free (document->priv->reqs);
document->priv->reqs = NULL;
}