diff --git a/vcg/simplex/face/base.h b/vcg/simplex/face/base.h index 240ed5c0..3fd48cb2 100644 --- a/vcg/simplex/face/base.h +++ b/vcg/simplex/face/base.h @@ -104,7 +104,7 @@ class FaceTypeHolder{ typedef BTT *TetraPointer; template void ImportLocal(const LeftF & ){} - static void Name(std::vector & name){} + static void Name(std::vector & /* name */){} // prot diff --git a/vcg/simplex/vertex/base.h b/vcg/simplex/vertex/base.h index 7cd2fea7..bd696229 100644 --- a/vcg/simplex/vertex/base.h +++ b/vcg/simplex/vertex/base.h @@ -95,7 +95,7 @@ class VertexTypeHolder{ typedef BTT *TetraPointer; template < class LeftV> void ImportLocal(const LeftV & /* left */ ) { } - static void Name(std::vector & name){} + static void Name(std::vector & /* name */){} }; diff --git a/wrap/io_trimesh/export_vmi.h b/wrap/io_trimesh/export_vmi.h index 849a404e..4ca070ce 100644 --- a/wrap/io_trimesh/export_vmi.h +++ b/wrap/io_trimesh/export_vmi.h @@ -70,7 +70,7 @@ namespace io { /* save Ocf Vertex Components */ template struct SaveVertexOcf{ - SaveVertexOcf(FILE*f, const CONT & vert, bool only_header){ + SaveVertexOcf(FILE*f, const CONT & /*vert*/, bool only_header){ // do nothing, it is a std::vector if(only_header){ WriteString(f,"NOT_HAS_VERTEX_QUALITY_OCF"); @@ -144,7 +144,7 @@ namespace io { /* save Ocf Face Components */ template struct SaveFaceOcf{ - SaveFaceOcf(FILE * f,const CONT & face, bool only_header){ + SaveFaceOcf(FILE * f,const CONT & /*face*/, bool only_header){ // it is a std::vector if(only_header){ WriteString(f,"NOT_HAS_FACE_QUALITY_OCF"); diff --git a/wrap/io_trimesh/import_vmi.h b/wrap/io_trimesh/import_vmi.h index ff0baae8..f033dd30 100644 --- a/wrap/io_trimesh/import_vmi.h +++ b/wrap/io_trimesh/import_vmi.h @@ -300,7 +300,7 @@ namespace io { template struct LoadVertexOcf{ - LoadVertexOcf(FILE*f,const CONT & vert){ + LoadVertexOcf(FILE* /*f*/,const CONT & /*vert*/){ // do nothing, it is a std::vector } }; @@ -382,7 +382,7 @@ namespace io { template struct LoadFaceOcf{ - LoadFaceOcf(FILE * f, const CONT & face){ + LoadFaceOcf(FILE * /* f */ , const CONT & /* face */){ // do nothing, it is a std::vector } }; @@ -398,7 +398,7 @@ namespace io { // face color ReadString(f,s); - if( s == std::string("HAS_FACE_COLOR_OCF")) mask |= Mask::IOM_FACECOLOR; + if( s == std::string("HAS_FACE_COLOR_OCF")) mask |= Mask::IOM_FACECOLOR; // face normal ReadString(f,s); @@ -616,7 +616,7 @@ namespace io { return true; } - static int Open(OpenMeshType &m, const char * filename, int & mask,CallBackPos * cb = 0 ){ + static int Open(OpenMeshType &m, const char * filename, int & mask,CallBackPos * /*cb*/ = 0 ){ typedef typename OpenMeshType::VertexType VertexType; typedef typename OpenMeshType::FaceType FaceType; @@ -661,7 +661,7 @@ namespace io { m.vert.resize(vertSize); - int read = 0; + size_t read = 0; /* load the vertices */ if(vertSize>0){ read=fread((void*)& m.vert[0],sizeof(VertexType),vertSize,F()); @@ -688,7 +688,7 @@ namespace io { ReadString(F(),_trash); ReadInt(F(),n); - for(int ia = 0 ; ia < n; ++ia){ + for(size_t ia = 0 ; ia < n; ++ia){ ReadString(F(),_trash); ReadString(F(),_string); ReadString(F(),_trash); ReadInt(F(),sz); @@ -700,7 +700,7 @@ namespace io { /* load the per face attributes */ ReadString(F(),_trash); ReadInt(F(),n); - for(int ia = 0 ; ia < n; ++ia){ + for(size_t ia = 0 ; ia < n; ++ia){ ReadString(F(),_trash); ReadString(F(),_string); ReadString(F(),_trash); ReadInt(F(),sz); void * data = Malloc(sz*m.face.size());