fix error and warnings in release mode

This commit is contained in:
Sébastien Loriot 2017-07-13 08:33:35 +02:00
parent b974c34ea4
commit 0f0a67b55e
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ public:
std::pair<typename An_edge_per_polyline_map::iterator,bool> res=
an_edge_per_polyline.insert(std::make_pair(make_sorted_pair(i,j),
Shared_halfedges() ) );
CGAL_USE(res);
CGAL_assertion(res.second);
}

View File

@ -659,7 +659,7 @@ public:
{
//get the corresponding halfedge with vertex corresponding to node_id_of_first
halfedge_descriptor hedge=it_node_2_hedge->second;
CGAL_assertion_code(halfedge_descriptor start=hedge;)
halfedge_descriptor start=hedge;
while ( source(hedge,tm) !=
target(it_node_2_hedge_two->second,tm) )
{