]> granicus.if.org Git - graphviz/commitdiff
Remove 2 -Wunused-but-set-variable warnings in gvrender_core_vml.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Nov 2020 13:57:09 +0000 (14:57 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:12:42 +0000 (09:12 +0100)
plugin/core/gvrender_core_vml.c

index dbcbd298040b3e5805f0915819b4ff2bb3ba75c7..010d823332b1f8cb4d720124fa5d80b5fa7ae87f 100644 (file)
@@ -442,7 +442,7 @@ static void vml_textspan(GVJ_t * job, pointf p, textspan_t * span)
 
 static void vml_ellipse(GVJ_t * job, pointf * A, int filled)
 {   
-    double dx, dy, left, right, top, bottom;
+    double dx, dy, left, top;
 
     /* A[] contains 2 points: the center and corner. */
     gvputs(job, "  <v:oval style=\"position:absolute;");
@@ -451,9 +451,7 @@ static void vml_ellipse(GVJ_t * job, pointf * A, int filled)
     dy=A[1].y-A[0].y;
 
     top=graphHeight-(A[0].y+dy);
-    bottom=top+dy+dy;
     left=A[0].x - dx;
-    right=A[1].x;
     gvprintf(job, " left: %.2f; top: %.2f;",left, top);
     gvprintf(job, " width: %.2f; height: %.2f\"", 2*dx, 2*dy);