From d628c956880a18171bae47c7654959fccc36d329 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 26 Nov 2015 22:02:43 +0000 Subject: [PATCH] harmless clang warnings --- vcg/complex/algorithms/point_outlier.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcg/complex/algorithms/point_outlier.h b/vcg/complex/algorithms/point_outlier.h index 81178c19..bb3e99a2 100644 --- a/vcg/complex/algorithms/point_outlier.h +++ b/vcg/complex/algorithms/point_outlier.h @@ -58,7 +58,7 @@ class OutlierRemoval typename MeshType::template PerVertexAttributeHandle plof = tri::Allocator:: template GetPerVertexAttribute(mesh, std::string("plof")); #pragma omp parallel for schedule(dynamic, 10) - for (int i = 0; i < mesh.vert.size(); i++) + for (size_t i = 0; i < mesh.vert.size(); i++) { PriorityQueue queue; kdTree.doQueryK(mesh.vert[i].cP(), kNearest, queue); @@ -71,7 +71,7 @@ class OutlierRemoval float mean = 0; #pragma omp parallel for reduction(+: mean) schedule(dynamic, 10) - for (int i = 0; i < mesh.vert.size(); i++) + for (size_t i = 0; i < mesh.vert.size(); i++) { PriorityQueue queue; kdTree.doQueryK(mesh.vert[i].cP(), kNearest, queue); @@ -87,7 +87,7 @@ class OutlierRemoval mean = sqrt(mean); #pragma omp parallel for schedule(dynamic, 10) - for (int i = 0; i < mesh.vert.size(); i++) + for (size_t i = 0; i < mesh.vert.size(); i++) { ScalarType value = plof[i] / (mean * sqrt(2.0f)); double dem = 1.0 + 0.278393 * value;