]> granicus.if.org Git - graphviz/commitdiff
Ghostscript plugin gvloadimage_gs_cairo: squash -Wunused-parameter warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 3 Apr 2022 20:07:00 +0000 (13:07 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Apr 2022 13:46:40 +0000 (06:46 -0700)
This parameter cannot be removed because this function is used as a callback.

plugin/gs/gvloadimage_gs.c

index b19d4aa5ccdbc7147e5b8c0ea445ea7900dfffad..e909c6f3212f32c5be1afa1a308f6b05ab939256 100644 (file)
@@ -224,6 +224,8 @@ static cairo_pattern_t* gvloadimage_gs_load(GVJ_t * job, usershape_t *us)
 
 static void gvloadimage_gs_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled)
 {
+    (void)filled;
+
     cairo_t *cr = job->context; // target context
     cairo_pattern_t *pattern = gvloadimage_gs_load(job, us);