]> granicus.if.org Git - graphviz/commitdiff
Quartz plugin quartzgen_bezier: squash -Wunused-parameter warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 7 Apr 2022 00:35:39 +0000 (17:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 10 Apr 2022 15:31:25 +0000 (08:31 -0700)
These parameters cannot be removed because this function is used as a callback.

plugin/quartz/gvrender_quartz.c

index 91c573476f0435adfab4c202c9e46c75998f1b64..9a8e19ff72290cc53b07ea7520433ad3619be51c 100644 (file)
@@ -410,6 +410,9 @@ static void
 quartzgen_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;
+
     /* convert bezier into the current path */
     CGContextRef context = job->context;
     CGContextMoveToPoint(context, A[0].x, A[0].y);