diff --git a/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/constructors.h b/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/constructors.h index 1bb4b2a33ef..1341a28f7df 100644 --- a/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/constructors.h +++ b/NewKernel_d/include/CGAL/NewKernel_d/LA_eigen/constructors.h @@ -92,7 +92,7 @@ namespace CGAL { struct Initializer_list { result_type operator()(std::initializer_list l) const { - return Iterator()(l.size(),l.begin(),l.end()); + return Iterator()(static_cast(l.size()),l.begin(),l.end()); } }; diff --git a/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h b/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h index 842abf61081..fd268aa6ed8 100644 --- a/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h +++ b/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h @@ -2113,8 +2113,10 @@ insert_balls(const Vertex_handle& vp, curve_index, d_sign) << ")\n"; #endif + const FT sgn = (d_sign == CGAL::POSITIVE) ? 1. + : (d_sign == CGAL::NEGATIVE ? -1. : 0.); const Bare_point new_point = - domain_.construct_point_on_curve(vpp, curve_index, d_sign * d / 2); + domain_.construct_point_on_curve(vpp, curve_index, sgn * d / 2); const int dim = 1; // new_point is on edge const Index index = domain_.index_from_curve_index(curve_index); const FT point_weight = CGAL::square(size_(new_point, dim, index)); diff --git a/Point_set_processing_3/include/CGAL/pointmatcher/compute_registration_transformation.h b/Point_set_processing_3/include/CGAL/pointmatcher/compute_registration_transformation.h index d561b3b26a4..f58dbedb618 100644 --- a/Point_set_processing_3/include/CGAL/pointmatcher/compute_registration_transformation.h +++ b/Point_set_processing_3/include/CGAL/pointmatcher/compute_registration_transformation.h @@ -78,7 +78,7 @@ construct_icp(const NamedParameters1& np1, const NamedParameters2& np2) icp.setDefault(); - const ICP_config null_config { "_null_pm_config_in_cgal" }; + const ICP_config null_config { /*.name=*/"_null_pm_config_in_cgal", /*.params=*/{ } }; const std::vector null_config_chain { null_config }; auto is_null_config = [&](const ICP_config& c) { return !c.name.compare(null_config.name); }; diff --git a/Polyhedron/demo/Polyhedron/include/CGAL/Polyhedron_kernel.h b/Polyhedron/demo/Polyhedron/include/CGAL/Polyhedron_kernel.h index 0028d9f10d3..1652e42e9b6 100644 --- a/Polyhedron/demo/Polyhedron/include/CGAL/Polyhedron_kernel.h +++ b/Polyhedron/demo/Polyhedron/include/CGAL/Polyhedron_kernel.h @@ -94,7 +94,7 @@ public: lp.set_a(index_x4, j, -1.0); // -x4 // right hand side (>= -dj) - FT dj = distance_to_origin(plane) * CGAL::sign(plane.d()); + FT dj = distance_to_origin(plane) * static_cast(CGAL::sign(plane.d())); lp.set_b(j, -dj); }