From e3726d2982f39fe6a4338896ec7ef67b19867d1e Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Sat, 7 Nov 2020 13:50:00 +0100 Subject: [PATCH] Remove 1 -Wunused-but-set-variable warning in compute_hierarchy.c --- lib/neatogen/compute_hierarchy.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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++) { -- 2.40.0