From: Magnus Jacobsson Date: Sat, 7 Nov 2020 12:50:00 +0000 (+0100) Subject: Remove 1 -Wunused-but-set-variable warning in compute_hierarchy.c X-Git-Tag: 2.46.0~11^2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3726d2982f39fe6a4338896ec7ef67b19867d1e;p=graphviz Remove 1 -Wunused-but-set-variable warning in compute_hierarchy.c --- diff --git a/lib/neatogen/compute_hierarchy.c b/lib/neatogen/compute_hierarchy.c index 11d05b497..618a10ba1 100644 --- a/lib/neatogen/compute_hierarchy.c +++ b/lib/neatogen/compute_hierarchy.c @@ -53,7 +53,6 @@ compute_hierarchy(vtx_data * graph, int n, double abs_tol, { double *y; int i, rv=0; - double spread; int use_given_levels = FALSE; int *ordering; int *levels; @@ -79,9 +78,7 @@ compute_hierarchy(vtx_data * graph, int n, double abs_tol, } quicksort_place(y, ordering, 0, n - 1); - spread = y[ordering[n - 1]] - y[ordering[0]]; - - /* after spread is computed, we may take the y-coords as the given levels */ + /* take the y-coords as the given levels */ if (given_levels) { use_given_levels = TRUE; for (i = 0; i < n; i++) {