From 02db50ae4fbd7397ae9bbe32a293466884ffeee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 4 Jan 2021 10:36:14 +0100 Subject: [PATCH] fix warnings --- Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h | 2 +- .../Policies/Edge_collapse/Polyhedral_envelope_filter.h | 1 - .../test_edge_collapse_Envelope.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h b/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h index 0e8df1b56b0..53c16127926 100644 --- a/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h +++ b/Polygon_mesh_processing/include/CGAL/Polyhedral_envelope.h @@ -932,7 +932,7 @@ private: bool - is_two_facets_neighbouring(const int & pid, const int &i, const int &j)const + is_two_facets_neighbouring(const unsigned int & pid, const unsigned int &i, const unsigned int &j)const { std::size_t facesize = halfspace[pid].size(); if (i == j) return false; diff --git a/Polygon_mesh_processing/include/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Polyhedral_envelope_filter.h b/Polygon_mesh_processing/include/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Polyhedral_envelope_filter.h index 7f3e3597715..038dcee122d 100644 --- a/Polygon_mesh_processing/include/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Polyhedral_envelope_filter.h +++ b/Polygon_mesh_processing/include/CGAL/Surface_mesh_simplification/Policies/Edge_collapse/Polyhedral_envelope_filter.h @@ -66,7 +66,6 @@ private: typedef typename boost::graph_traits::vertex_descriptor vertex_descriptor; const Triangle_mesh& tm = profile.surface_mesh(); - const Geom_traits& gt = profile.geom_traits(); m_vertices.reserve(num_vertices(tm)); m_faces.reserve(num_faces(tm)); diff --git a/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Envelope.cpp b/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Envelope.cpp index 348b2045bff..d7228a1406a 100644 --- a/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Envelope.cpp +++ b/Surface_mesh_simplification/test/Surface_mesh_simplification/test_edge_collapse_Envelope.cpp @@ -56,8 +56,8 @@ struct My_visitor : SMS::Edge_collapse_visitor_base // If cost is absent the edge won't be collapsed. void OnSelected(const Profile&, boost::optional cost, - std::size_t initial, - std::size_t current) + std::size_t /* initial */, + std::size_t /* current */) { ++(stats->processed); if(!cost)