Try to fix warning

This commit is contained in:
Andreas Fabri 2019-04-30 08:39:01 +02:00
parent 88606e4110
commit 1c72c40b65
1 changed files with 2 additions and 4 deletions

View File

@ -163,8 +163,6 @@ OutputIterator partition_approx_convex_2(InputIterator first,
triangles.insert(c, next);
} while (++c != first_c);
Segment_2 edge;
#ifdef CGAL_PARTITION_APPROX_CONVEX_DEBUG
std::cout << "Inserting diagonals: " << std::endl;
#endif
@ -189,7 +187,7 @@ OutputIterator partition_approx_convex_2(InputIterator first,
{
if ((*e_circ).first->is_constrained((*e_circ).second))
{
edge = triangles.segment((*e_circ).first, (*e_circ).second);
Segment_2 edge = triangles.segment((*e_circ).first, (*e_circ).second);
#ifdef CGAL_PARTITION_APPROX_CONVEX_DEBUG
std::cout << "edge " << *edge.source() << " " << *edge.target()
<< " is constrained " << std::endl;
@ -199,7 +197,7 @@ OutputIterator partition_approx_convex_2(InputIterator first,
{
if (!triangles.is_infinite(*e_circ))
{
edge = triangles.segment((*e_circ).first, (*e_circ).second);
Segment_2 edge = triangles.segment((*e_circ).first, (*e_circ).second);
Circulator source = edge.source();
Circulator target = edge.target();
Circulator before_s = source; before_s--;