]> granicus.if.org Git - graphviz/commitdiff
sparse SparseMatrix_distance_matrix: squash warning in release mode
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 10 Jan 2023 16:02:31 +0000 (08:02 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 17:05:18 +0000 (09:05 -0800)
This code triggered a -Wunused-variable warning.

lib/sparse/SparseMatrix.c

index 8a2c6a3059638a9c54d1455695dbaa592394b8e0..9aa52515d8143bb4a585b84c57fbf14d88a2c5a6 100644 (file)
@@ -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;