Removed harmless warnings

This commit is contained in:
Paolo Cignoni 2009-05-22 07:54:42 +00:00
parent e1e58a75cf
commit 291c2790af
4 changed files with 25 additions and 26 deletions

View File

@ -246,7 +246,7 @@ private:
return; return;
} }
} }
assert(pos >=0 && pos< _mesh->vert.size()); assert(pos >=0 && size_t(pos)< _mesh->vert.size());
v = &_mesh->vert[pos]; v = &_mesh->vert[pos];
} }
void GetYIntercept(const vcg::Point3i &p1, const vcg::Point3i &p2, VertexPointer &v) void GetYIntercept(const vcg::Point3i &p1, const vcg::Point3i &p2, VertexPointer &v)

View File

@ -50,7 +50,7 @@ Revision 1.1 2005/02/22 16:40:29 ganovelli
created. This version writes the gaussian curvature on the Q() member of created. This version writes the gaussian curvature on the Q() member of
the vertex the vertex
/****************************************************************************/ ****************************************************************************/
#ifndef VCGLIB_UPDATE_CURVATURE_ #ifndef VCGLIB_UPDATE_CURVATURE_
#define VCGLIB_UPDATE_CURVATURE_ #define VCGLIB_UPDATE_CURVATURE_
@ -401,7 +401,7 @@ public:
static void MeanAndGaussian(MeshType & m) static void MeanAndGaussian(MeshType & m)
{ {
assert(HasFFAdjacency(m)); assert(HasFFAdjacency(m));
float area0, area1, area2, angle0, angle1, angle2, e01, e12, e20; float area0, area1, area2, angle0, angle1, angle2;
FaceIterator fi; FaceIterator fi;
VertexIterator vi; VertexIterator vi;
typename MeshType::CoordType e01v ,e12v ,e20v; typename MeshType::CoordType e01v ,e12v ,e20v;

View File

@ -174,7 +174,6 @@ static size_t VertexFromFaceLoose(MeshType &m)
*/ */
static size_t VertexFromFaceStrict(MeshType &m) static size_t VertexFromFaceStrict(MeshType &m)
{ {
size_t selCnt=0;
VertexFromFaceLoose(m); VertexFromFaceLoose(m);
FaceIterator fi; FaceIterator fi;
for(fi = m.face.begin(); fi != m.face.end(); ++fi) for(fi = m.face.begin(); fi != m.face.end(); ++fi)

View File

@ -103,7 +103,7 @@ class FaceTypeHolder{
typedef BFT *FacePointer; typedef BFT *FacePointer;
typedef BTT *TetraPointer; typedef BTT *TetraPointer;
template <class LeftF> template <class LeftF>
void ImportLocal(const LeftF & l){} void ImportLocal(const LeftF & ){}
static void Name(std::vector<std::string> & name){} static void Name(std::vector<std::string> & name){}