From 3350f9d05e715ed21833faa458a31eca1d12f9ea Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Mon, 30 Mar 2020 08:09:58 +0200 Subject: [PATCH] Fix warnings --- BGL/include/CGAL/boost/graph/alpha_expansion_graphcut.h | 3 ++- BGL/include/CGAL/boost/graph/named_params_helper.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/alpha_expansion_graphcut.h b/BGL/include/CGAL/boost/graph/alpha_expansion_graphcut.h index 74e96378a75..088c3472201 100644 --- a/BGL/include/CGAL/boost/graph/alpha_expansion_graphcut.h +++ b/BGL/include/CGAL/boost/graph/alpha_expansion_graphcut.h @@ -261,7 +261,8 @@ public: inserted_vertices[vertex_i]); if(std::size_t(get (vertex_label_map, vd)) != alpha && color == ColorTraits::white()) //new comers (expansion occurs) - put (vertex_label_map, vd, alpha); + put (vertex_label_map, vd, + static_cast::value_type>(alpha)); } void add_edge (Vertex_descriptor& v1, Vertex_descriptor& v2, double w1, double w2) diff --git a/BGL/include/CGAL/boost/graph/named_params_helper.h b/BGL/include/CGAL/boost/graph/named_params_helper.h index f22499d1825..6267dde6e41 100644 --- a/BGL/include/CGAL/boost/graph/named_params_helper.h +++ b/BGL/include/CGAL/boost/graph/named_params_helper.h @@ -40,7 +40,7 @@ namespace CGAL { class Default_diagonalize_traits; class Eigen_svd; class Lapack_svd; - class Alpha_expansion_boost_adjacency_list_tag; + struct Alpha_expansion_boost_adjacency_list_tag; //