]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wunused-but-set-variable warning in twopiinit.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 7 Nov 2020 13:30:19 +0000 (14:30 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:12:37 +0000 (09:12 +0100)
lib/twopigen/twopiinit.c

index f5b1777279c4c5ab4755394c9d46794142749c59..b27c0f7069f33cea65d603badb034db313e63a5f 100644 (file)
@@ -79,7 +79,6 @@ void twopi_layout(Agraph_t * g)
     int setRoot = 0;
     int setLocalRoot = 0;
     pointf sc;
-    int doScale = 0;
     int r;
     Agsym_t* rootattr;
 
@@ -106,7 +105,6 @@ void twopi_layout(Agraph_t * g)
     if ((s = agget(g, "scale")) && *s) {
        if ((r = sscanf (s, "%lf,%lf",&sc.x,&sc.y))) {
            if (r == 1) sc.y = sc.x;
-           doScale = 1;
        }
     }