clang: fix -Wunused-but-set-variable

This commit is contained in:
wmayer
2023-03-12 13:56:54 +01:00
committed by wwmayer
parent 4cd350d2d0
commit 2a970b3045
11 changed files with 15 additions and 24 deletions

View File

@@ -3123,6 +3123,13 @@ void Adaptive2d::ProcessPolyNode(Paths boundPaths, Paths toolBoundPaths)
<< " iter_per_point:" << (double(total_iterations) / ((double(total_points) + 0.001)))
<< " total_exceeded:" << total_exceeded << " (" << 100 * double(total_exceeded) / double(total_points) << "%)"
<< endl;
#else
(void)total_output_points;
(void)over_cut_count;
(void)total_exceeded;
(void)total_points;
(void)total_iterations;
(void)perf_total_len;
#endif
// warn about invalid paths being detected

View File

@@ -1214,6 +1214,7 @@ return;
for(int j = 0; j < (int)p0.size(); j++) all.push_back(p0[j]);
}
(void)totalPoints;
//FILE* d;
//d = fopen("\\temp\\test.txt", "w");
// for(int l = 0; l < all.size(); l++) all[l].print(d, "all","\n");