diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-05-18 09:56:16 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2018-05-18 09:57:38 -0500 |
commit | b8fdfcae060bdffb15d81e68cdff011105013eb0 (patch) | |
tree | 14736794d498fc4f0ea9b085f59177fad9d33994 /libyelp/yelp-simple-document.c | |
parent | 0caa15097ab7595b6a5031ccf1fb75ffb8929d0f (diff) | |
download | yelp-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.c | 2 |
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; } |