fix unused variable warnings

This commit is contained in:
Sébastien Loriot 2023-07-06 18:03:25 +02:00
parent 700d4daf7f
commit 4e6fe0c561
1 changed files with 6 additions and 3 deletions

View File

@ -13,6 +13,7 @@
#define CGAL_TRIANGULATION_SEGMENT_TRAVERSER_3_IMPL_H
#include <CGAL/license/Triangulation_3.h>
#include <CGAL/assertions.h>
namespace CGAL {
@ -337,7 +338,9 @@ Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_3(const Simplex& pre
std::array<const Point*, 4> vert = {&(cur_cell->vertex(0)->point()), &(cur_cell->vertex(1)->point()),
&(cur_cell->vertex(2)->point()), &(cur_cell->vertex(3)->point())};
int inside = 0, outside = 0, regular_case = 0, degenerate = 0;
CGAL_assertion_code(int inside = 0;)
CGAL_assertion_code(int outside = 0;)
int regular_case = 0, degenerate = 0;
if(cur.lt == Tr::FACET && prev.cell != Cell_handle()) {
// [source, target] entered the cell `cur` via a facet.
@ -347,7 +350,7 @@ Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_3(const Simplex& pre
Simplex cur_after_walk;
auto case_target_is_inside_cur_cell = [&](int case_nb) {
inside = case_nb;
CGAL_assertion_code(inside = case_nb;)
prev_after_walk = {cur_cell, Tr::CELL, -1, -1};
cur_after_walk = {{}, Tr::CELL, -1, -1};
};
@ -355,7 +358,7 @@ Triangulation_segment_cell_iterator_3<Tr,Inc>::walk_to_next_3(const Simplex& pre
if(nnext == Cell_handle{}) {
nnext = cur_cell->neighbor(facet_nb);
}
outside = facet_nb;
CGAL_assertion_code(outside = facet_nb;)
prev_after_walk = {cur_cell, Tr::FACET, facet_nb, -1};
cur_after_walk = {nnext, Tr::FACET, nnext->index(cur_cell), -1};
};