Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sloriot committed Jan 23, 2025
1 parent c313da8 commit 0bb274d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
22 changes: 19 additions & 3 deletions BGL/test/BGL/test_OpenMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,29 @@ typedef Traits::edge_descriptor edge_descriptor;
typedef Traits::halfedge_descriptor halfedge_descriptor;
typedef Traits::vertex_descriptor vertex_descriptor;
typedef Traits::face_descriptor face_descriptor;
//typedef Kernel::Point_3 Point_3;

int main()
{
Om om;
for (Om::EdgeHandle ed : edges(om)) {
std::cout << "edge" << std::endl;
for (Om::EdgeHandle ed : edges(om))
{
CGAL_USE(ed);
}
for (edge_descriptor ed : edges(om))
{
CGAL_USE(ed);
}
for (halfedge_descriptor hd : edges(om))
{
CGAL_USE(hd);
}
for (face_descriptor fd : faces(om))
{
CGAL_USE(fd);
}
for (vertex_descriptor vd : vertices(om))
{
CGAL_USE(vd);
}
return 0;
}
2 changes: 1 addition & 1 deletion SMDS_3/test/SMDS_3/test_c3t3_with_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ struct Tester
// Test vertex iterators
//-------------------------------------------------------
std::cout << "Test vertex iterators\n";
const Vertex_handle& vertex_to_modify = c3t3.vertices_in_complex_begin();
Vertex_handle vertex_to_modify = c3t3.vertices_in_complex_begin();
Vertex_handle vertex_to_modify_copy = vertex_to_modify;

c3t3.remove_from_complex(vertex_to_modify);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ struct Node_1
void set_time_stamp(const std::size_t& ts) {
time_stamp_ = ts;
}
std::size_t time_stamp_;
std::size_t time_stamp_ = 0;
};

class Node_2
Expand Down

0 comments on commit 0bb274d

Please sign in to comment.