From 8e38e6ba0d71752effa49416e031b593f8db251f Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 10 Jan 2023 08:02:31 -0800 Subject: [PATCH] sparse SparseMatrix_distance_matrix: squash warning in release mode This code triggered a -Wunused-variable warning. --- lib/sparse/SparseMatrix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sparse/SparseMatrix.c b/lib/sparse/SparseMatrix.c index 8a2c6a305..9aa52515d 100644 --- a/lib/sparse/SparseMatrix.c +++ b/lib/sparse/SparseMatrix.c @@ -2364,6 +2364,7 @@ int SparseMatrix_distance_matrix(SparseMatrix D0, int weighted, double **dist0){ } assert(m == n); + (void)m; if (!(*dist0)) *dist0 = gv_calloc(n * n, sizeof(double)); for (i = 0; i < n*n; i++) (*dist0)[i] = -1; -- 2.50.1