From: Matthew Fernandez Date: Thu, 31 Mar 2022 03:38:56 +0000 (-0700) Subject: webp_loadimage_cairo: squash -Wunused-parameter warning X-Git-Tag: 4.0.0~146^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=886fff9014f0fa101831f772265df06fb8e6f707;p=graphviz webp_loadimage_cairo: squash -Wunused-parameter warning This function is used as a callback, so needs to have this type signature. --- diff --git a/plugin/webp/gvloadimage_webp.c b/plugin/webp/gvloadimage_webp.c index 207f0a9b4..ba032a135 100644 --- a/plugin/webp/gvloadimage_webp.c +++ b/plugin/webp/gvloadimage_webp.c @@ -163,6 +163,8 @@ static cairo_surface_t* webp_loadimage(GVJ_t * job, usershape_t *us) /* paint image into required location in graph */ static void webp_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled) { + (void)filled; + cairo_t *cr = job->context; /* target context */ cairo_surface_t *surface; /* source surface */