From 5ad9d10d42de77f4164b44a69b60a3d5e9477baf Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 17 Mar 2021 17:11:04 -0700 Subject: [PATCH] suppress some -Wunused-parameter warnings --- plugin/pango/gvloadimage_pango.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/pango/gvloadimage_pango.c b/plugin/pango/gvloadimage_pango.c index 1ddbc3f18..d6af76f93 100644 --- a/plugin/pango/gvloadimage_pango.c +++ b/plugin/pango/gvloadimage_pango.c @@ -87,6 +87,9 @@ static void pango_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, boolean assert(us->name); assert(us->name[0]); + // suppress unused parameter warning + (void)filled; + surface = cairo_loadimage(job, us); if (surface) { cairo_save(cr); @@ -105,6 +108,9 @@ static void pango_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, boolean fil int X, Y, x, y, stride; unsigned char *data, *ix, alpha, red, green, blue; + // suppress unused parameter warning + (void)filled; + surface = cairo_loadimage(job, us); if (surface) { format = cairo_image_surface_get_format(surface); -- 2.40.0