]> granicus.if.org Git - graphviz/commitdiff
webp_loadimage_cairo: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 31 Mar 2022 03:38:56 +0000 (20:38 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 00:07:11 +0000 (17:07 -0700)
This function is used as a callback, so needs to have this type signature.

plugin/webp/gvloadimage_webp.c

index 207f0a9b409659928ff0a3b9fd6843c747a0a1d8..ba032a13598165607e327eee3b9e34d41055a246 100644 (file)
@@ -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 */