The CMake macOS CI job has begun erroring out:
…/lib/mingle/agglomerative_bundling.cpp:400:27: error: variable 'total_wgt'
set but not used [-Werror,-Wunused-but-set-variable]
double eps = 0., wgt, total_wgt = 0;
^
While the error is accurate, nothing has changed on our side that would have
caused this. I can only assume Gitlab have upgraded the macOS runners to pull in
a new version of Clang.
pedge *mid_edges, midedge;/* middle section of edges that will be bundled again */
int ne, npp, l;
SparseMatrix A_mid;
- double eps = 0., wgt, total_wgt = 0;
+ double eps = 0., wgt;
/* make new edges using meet1 and meet2.
pick = &(ja[ia[i]]);
wgt = 0.;
for (j = ia[i]; j < ia[i+1]; j++) wgt += edges[j]->wgt;
- total_wgt += wgt;
if (DEBUG) if (Verbose) fprintf(stderr,"calling ink3...\n");
ink1 = ink(edges, ia[i+1]-ia[i], pick, &ink0, &meet1, &meet2, angle_param, angle);
if (DEBUG) if (Verbose) fprintf(stderr,"done calling ink3...\n");