From: Matthew Fernandez Date: Sat, 20 Aug 2022 03:46:19 +0000 (-0700) Subject: GD plugin: squash -Wunused-parameter warnings X-Git-Tag: 6.0.1~34^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86713f029f7c342a077d484ad0622b43167eb47f;p=graphviz GD plugin: squash -Wunused-parameter warnings These functions are used as callbacks, so their parameters cannot easily be removed. --- diff --git a/plugin/gd/gvloadimage_gd.c b/plugin/gd/gvloadimage_gd.c index 8b0ce6506..544da0ced 100644 --- a/plugin/gd/gvloadimage_gd.c +++ b/plugin/gd/gvloadimage_gd.c @@ -90,6 +90,8 @@ static gdImagePtr gd_rotateimage(gdImagePtr im, int rotation) static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, bool filled) { + (void)filled; + gdImagePtr im2, im = job->context; if ((im2 = gd_loadimage(job, us))) { @@ -103,6 +105,8 @@ static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, bool filled) #ifdef HAVE_PANGOCAIRO static void gd_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled) { + (void)filled; + cairo_t *cr = job->context; /* target context */ unsigned int x, y, stride, width, height, px; unsigned char *data; @@ -169,6 +173,8 @@ static void gd_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled static void gd_loadimage_ps(GVJ_t * job, usershape_t *us, boxf b, bool filled) { + (void)filled; + gdImagePtr im = NULL; int X, Y, x, y, px; diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c index 138a73393..94324e585 100644 --- a/plugin/gd/gvrender_gd.c +++ b/plugin/gd/gvrender_gd.c @@ -425,6 +425,9 @@ static void gdgen_bezier(GVJ_t * job, pointf * A, int n, int arrow_at_start, int arrow_at_end, int filled) { + (void)arrow_at_start; + (void)arrow_at_end; + obj_state_t *obj = job->obj; gdImagePtr im = job->context; pointf p0, p1, V[4]; diff --git a/plugin/gd/gvrender_gd_vrml.c b/plugin/gd/gvrender_gd_vrml.c index 96e4dcd34..7f5aa7b66 100644 --- a/plugin/gd/gvrender_gd_vrml.c +++ b/plugin/gd/gvrender_gd_vrml.c @@ -483,6 +483,10 @@ nearTail (GVJ_t* job, pointf a, Agedge_t* e) static void vrml_bezier(GVJ_t *job, pointf * A, int n, int arrow_at_start, int arrow_at_end, int filled) { + (void)arrow_at_start; + (void)arrow_at_end; + (void)filled; + obj_state_t *obj = job->obj; edge_t *e = obj->u.e; double fstz, sndz;