From: Matthew Fernandez Date: Tue, 10 Jan 2023 16:02:31 +0000 (-0800) Subject: sparse SparseMatrix_distance_matrix: squash warning in release mode X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e38e6ba0d71752effa49416e031b593f8db251f;p=graphviz sparse SparseMatrix_distance_matrix: squash warning in release mode This code triggered a -Wunused-variable warning. --- 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;