From 9b24f403a402683682e71cd19b60768569054db1 Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 7 Nov 2020 13:40:49 +0100 Subject: [PATCH] Remove 1 -Wunused-but-set-variable warning in aspect.c --- lib/dotgen/aspect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dotgen/aspect.c b/lib/dotgen/aspect.c index 2ffb1ef87..aa667619e 100644 --- a/lib/dotgen/aspect.c +++ b/lib/dotgen/aspect.c @@ -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; } -- 2.40.0