]> granicus.if.org Git - graphviz/commitdiff
mindle agglomerative_ink_bundling_internal: squash warning in release mode
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 10 Jan 2023 15:58:24 +0000 (07:58 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 14 Jan 2023 17:05:18 +0000 (09:05 -0800)
When building in release mode, this causes a -Wunused-variable warning.

lib/mingle/agglomerative_bundling.cpp

index 4448250a29d920507efb64b19dfca4e7a607750b..7b669f41943f695cdd1128b4666bb4cf9f08e5a7 100644 (file)
@@ -355,6 +355,7 @@ static pedge* agglomerative_ink_bundling_internal(int dim, SparseMatrix A, pedge
        ink1 = ink(edges, ia[i+1]-ia[i], pick, &ink0, &meet1, &meet2, angle_param, angle);
        if (MINGLE_DEBUG) if (Verbose) fprintf(stderr,"finish calling ink2...\n");
        assert(fabs(ink1 - cgrid->inks[i])<=MAX(TOL, TOL*ink1) && ink1 - ink0 <= TOL);
+       (void)TOL;
        assert(ink1 < 1000 * ink0); /* assert that points were found */
        wgt_all = 0.;
        if (ia[i+1]-ia[i] > 1){