]> granicus.if.org Git - graphviz/commitdiff
GDK plugin gdk_loadimage_cairo: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 19:57:24 +0000 (12:57 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 9 Apr 2022 01:03:38 +0000 (18:03 -0700)
This parameter cannot be removed because this function is used as a callback.

plugin/gdk/gvloadimage_gdk.c

index 7a63230f999ef0788e306bb18afc4685d2913f42..b6356b919d37de582dd7ba384c5b6f709a3257a2 100644 (file)
@@ -189,6 +189,8 @@ static cairo_surface_t* gdk_loadimage(GVJ_t * job, usershape_t *us)
 
 static void gdk_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled)
 {
+    (void)filled;
+
     cairo_t *cr = (cairo_t *) job->context; /* target context */
 #ifndef HAVE_CAIRO_SURFACE_SET_MIME_DATA
     GdkPixbuf *image;