diff --git a/vcg/complex/trimesh/crease_cut.h b/vcg/complex/trimesh/crease_cut.h index 65823559..19bcfaf7 100644 --- a/vcg/complex/trimesh/crease_cut.h +++ b/vcg/complex/trimesh/crease_cut.h @@ -77,7 +77,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad) int creaseCounter=0; int startVn=m.vn; FaceIterator fi; - const FaceType * nextf; + //const FaceType * nextf; for(fi=m.face.begin();fi!=m.face.end();++fi) for(int j=0;j<3;++j) if(!(*fi).V(j)->IsV() ) // foreach unvisited vertex we loop around it searching for creases. @@ -131,7 +131,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad) int curVertexInd = indVec[faceInd*3+ j]; assert(curVertexInd != -1); assert(curVertexInd < m.vn); - if(curVertexInd < startVn) assert(curVertexInd == vertInd); + if(curVertexInd < startVn) assert(size_t(curVertexInd) == vertInd); if(curVertexInd >= startVn) { m.vert[curVertexInd].ImportLocal(*((*fi).V(j))); diff --git a/vcg/math/histogram.h b/vcg/math/histogram.h index 067736c2..26d0c4a7 100644 --- a/vcg/math/histogram.h +++ b/vcg/math/histogram.h @@ -425,7 +425,7 @@ ScalarType Histogram::Percentile(ScalarType frac) const assert(frac >= 0 && frac <= 1); ScalarType sum=0,partsum=0; - int i; + size_t i; // useless summation just to be sure for(i=0;i