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

index 2ffb1ef87a8dba00f3e8125e52483375ecf075a2..aa667619efdd7da367a8df7ddffd302a15bd8c62 100644 (file)
@@ -467,7 +467,7 @@ void initEdgeTypes(graph_t * g)
  */
 static double computeCombiAR(graph_t * g)
 {
-    int i, maxLayerIndex;
+    int i;
     double maxW = 0;
     double maxH;
     double ratio;
@@ -482,7 +482,6 @@ static double computeCombiAR(graph_t * g)
            maxW =
                layerWidthInfo[i].width +
                layerWidthInfo[i].nDummyNodes * GD_nodesep(g);
-           maxLayerIndex = i;
        }
        maxH += layerWidthInfo[i].height;
     }