]> granicus.if.org Git - graphviz/commitdiff
mingle edge_bundling: squash compilation warnings when building without libANN
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 18 Jan 2023 16:22:35 +0000 (08:22 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 22 Jan 2023 00:32:26 +0000 (16:32 -0800)
lib/mingle/edge_bundling.cpp

index 9d11096c4d5a081846c13ffb5c689984ff84ee35..cb86606b435dc0ddf1778da00a6164ed3d017e66 100644 (file)
@@ -625,6 +625,8 @@ pedge* edge_bundling(SparseMatrix A0, int dim, double *x, int maxit_outer, doubl
     /* plan: merge a node with its neighbors if doing so improve. Form coarsening graph, repeat until no more ink saving */
     edges = agglomerative_ink_bundling(dim, A, edges, nneighbor, max_recursion, angle_param, angle);
 #else
+    (void)max_recursion;
+    (void)nneighbor;
     agerr (AGERR, "Graphviz built without approximate nearest neighbor library ANN; agglomerative inking not available\n");
     edges = edges;
 #endif