From b6e3c417aab823f2239dc26d44a1f3c0e328ebab Mon Sep 17 00:00:00 2001 From: Clement Jamin Date: Mon, 22 Jun 2015 11:15:11 +0200 Subject: [PATCH] Fix warnings --- .../include/CGAL/Shape_detection_3/Octree.h | 6 +++--- .../include/CGAL/Shape_detection_3/Plane.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h index c2e71c1c9f8..07cbaba331a 100644 --- a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h +++ b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Octree.h @@ -324,7 +324,7 @@ namespace CGAL { if (zLowYSplit != size_t_max) { if (zLowYLowXSplit != size_t_max) { - if ((int)cell->first <= zLowYLowXSplit) { + if (cell->first <= zLowYLowXSplit) { //--- cell->child[7] = new Cell(cell->first, zLowYLowXSplit, @@ -429,8 +429,8 @@ namespace CGAL { } else zHighYHighXSplit = zHighYSplit; - if (zHighYHighXSplit <= (int)cell->last || zHighYHighXSplit == size_t_max) { - if (zHighYHighXSplit < (int)cell->last || zHighYHighXSplit == size_t_max) { + if (zHighYHighXSplit <= cell->last || zHighYHighXSplit == size_t_max) { + if (zHighYHighXSplit < cell->last || zHighYHighXSplit == size_t_max) { //+++ cell->child[0] = new Cell(zHighYHighXSplit + 1, cell->last, diff --git a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Plane.h b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Plane.h index 91d03e34e58..65c0f98a1b7 100644 --- a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Plane.h +++ b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Plane.h @@ -179,7 +179,7 @@ namespace CGAL { } } - FT cos_to_normal(const Point_3 &p, const Vector_3 &n) const{ + FT cos_to_normal(const Point_3 &, const Vector_3 &n) const{ return CGAL::abs(n * m_normal); }