]> granicus.if.org Git - graphviz/commitdiff
GD plugin: squash -Wunused-parameter warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Aug 2022 03:46:19 +0000 (20:46 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Aug 2022 17:53:19 +0000 (10:53 -0700)
These functions are used as callbacks, so their parameters cannot easily be
removed.

plugin/gd/gvloadimage_gd.c
plugin/gd/gvrender_gd.c
plugin/gd/gvrender_gd_vrml.c

index 8b0ce6506f178b98ce208e1190239cf8e096fc26..544da0cedff72ed486d6fb7d555ded9514d0169c 100644 (file)
@@ -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;
 
index 138a733933ea4d613066767e905863011589062f..94324e585cfea70638b0cc097005b5cfe3d85df2 100644 (file)
@@ -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];
index 96e4dcd34df95578b422f9b09410c8042a350d6c..7f5aa7b66576ea45cd4aa81d239455be0e899d10 100644 (file)
@@ -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;