From 34185bbae131b54bb0aee38087d25fa40d54feb5 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 18 Mar 2020 08:30:57 +0100 Subject: [PATCH] Fix warnings --- .../registration_with_pointmatcher.cpp | 8 ++++++++ .../CGAL/OpenGR/compute_registration_transformation.h | 3 --- .../pointmatcher/compute_registration_transformation.h | 1 - 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Point_set_processing_3/examples/Point_set_processing_3/registration_with_pointmatcher.cpp b/Point_set_processing_3/examples/Point_set_processing_3/registration_with_pointmatcher.cpp index 54be43b3717..d0827f416d4 100644 --- a/Point_set_processing_3/examples/Point_set_processing_3/registration_with_pointmatcher.cpp +++ b/Point_set_processing_3/examples/Point_set_processing_3/registration_with_pointmatcher.cpp @@ -133,6 +133,14 @@ int main(int argc, const char** argv) * */ ); + if (converged) + std::cerr << "Success" << std::endl; + else + { + std::cerr << "Failure" << std::endl; + return EXIT_FAILURE; + } + std::ofstream out("pwns2_aligned.ply"); if (!out || !CGAL::write_ply_points( diff --git a/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h b/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h index 38a33903315..d653604b87c 100644 --- a/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h +++ b/Point_set_processing_3/include/CGAL/OpenGR/compute_registration_transformation.h @@ -82,9 +82,6 @@ compute_registration_transformation(const PointRange1& range1, const PointRan VectorMap1 vector_map1, VectorMap2 vector_map2, Options& options) { - typedef typename Kernel::Point_3 Point_3; - typedef typename Kernel::Vector_3 Vector_3; - typedef gr::Point3D PointType; namespace GR=gr; 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 58350857f8a..94348bade9e 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 @@ -264,7 +264,6 @@ compute_registration_transformation(const PointRange1& range1, const PointRange2 using PM = PointMatcher; using PM_cloud = typename PM::DataPoints; using PM_matrix = typename PM::Matrix; - using PM_labels = typename PM_cloud::Labels; using PM_transform = typename PM::Transformation; using PM_transform_params = typename PM::TransformationParameters;