removed harmless gcc warnings

This commit is contained in:
Paolo Cignoni 2009-01-03 22:44:49 +00:00
parent fe715961f3
commit 28c13b2037
4 changed files with 6 additions and 6 deletions

View File

@ -235,7 +235,7 @@ namespace io {
}
assert(numvert == m.vn);
fprintf(fp,"# %d vertices, %d vertices normals\n\n",m.vn,NormalVertex.size());
fprintf(fp,"# %d vertices, %d vertices normals\n\n",m.vn,int(NormalVertex.size()));
//faces + texture coords
FaceIterator fi;
@ -304,7 +304,7 @@ namespace io {
}
}//for
fprintf(fp,"# %d faces, %d coords texture\n\n",m.face.size(),CoordIndexTexture.size());
fprintf(fp,"# %d faces, %d coords texture\n\n",m.fn,int(CoordIndexTexture.size()));
fprintf(fp,"# End of File");
fclose(fp);
@ -342,7 +342,7 @@ namespace io {
/*
returns index of the vertex normal
*/
inline static int GetIndexVertexNormal(SaveMeshType &m, std::map<Point3f,int> &mapNormToInt, const Point3f &norm )
inline static int GetIndexVertexNormal(SaveMeshType &/*m*/, std::map<Point3f,int> &mapNormToInt, const Point3f &norm )
{
std::map<Point3f,int>::iterator iter= mapNormToInt.find(norm);
if(iter != mapNormToInt.end()) return (*iter).second;

View File

@ -89,7 +89,7 @@ static int Save(SaveMeshType &m, const char * filename , bool binary =true, cons
if(binary)
{
// Write Header
char *header="VCG ";
char header[128]="VCG ";
if(objectname) strncpy(header,objectname,80);
fwrite(header,80,1,fp);
// write number of facets

View File

@ -84,7 +84,7 @@ namespace vcg {
);
// Tranche principale
double ss = 8.0/m.bbox.Diag();
//double ss = 8.0/m.bbox.Diag();
fprintf(fp,
"Transform {\n"

View File

@ -614,7 +614,7 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi)
{
assert(m.face.size()==size_t(m.fn));
m.face[i].Alloc(indexedFaces[i].v.size()); // it does not do anything if it is a trimesh
for(int j=0;j<indexedFaces[i].v.size();++j)
for(uint j=0;j<indexedFaces[i].v.size();++j)
{
m.face[i].V(j)=&(m.vert[indexedFaces[i].v[j]]);
if ( oi.mask & vcg::tri::io::Mask::IOM_WEDGTEXCOORD ) {