From 1a4c19c69f379abde1fda5fa47c067a44b7961b6 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 3 Mar 2009 23:39:27 +0000 Subject: [PATCH] removed harmless warnings --- wrap/io_trimesh/export_vrml.h | 2 +- wrap/io_trimesh/import_ply.h | 4 +--- wrap/io_trimesh/import_stl.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/wrap/io_trimesh/export_vrml.h b/wrap/io_trimesh/export_vrml.h index 09ee7f76..797aae33 100644 --- a/wrap/io_trimesh/export_vrml.h +++ b/wrap/io_trimesh/export_vrml.h @@ -65,7 +65,7 @@ namespace vcg { typedef typename SaveMeshType::FaceIterator FaceIterator; ///Standard call for saving a mesh - static int Save(SaveMeshType &m, const char * filename, const int &mask, CallBackPos *cb=0) + static int Save(SaveMeshType &m, const char * filename, const int &mask, CallBackPos */*cb=0*/) { FILE *fp; fp = fopen(filename,"wb"); diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index 2d9d17c4..ab71bf87 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -340,7 +340,7 @@ static const PropDescriptor &TristripDesc(int i) static const PropDescriptor &RangeDesc(int i) { static const PropDescriptor range_props[1] = { - {"range_grid","vertex_indices", ply::T_INT, ply::T_INT, offsetof(LoadPly_RangeGridAux,pts), 1, 0, ply::T_UCHAR, ply::T_UCHAR, offsetof(LoadPly_RangeGridAux,num_pts)}, + {"range_grid","vertex_indices", ply::T_INT, ply::T_INT, offsetof(LoadPly_RangeGridAux,pts), 1, 0, ply::T_UCHAR, ply::T_UCHAR, offsetof(LoadPly_RangeGridAux,num_pts),0}, }; return range_props[i]; } @@ -915,7 +915,6 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) std::string num_rows = "num_rows"; std::string &c = pf.comments[co]; std::string bufstr,bufclean; - int i,n; if( num_cols == c.substr(0,num_cols.length()) ) { bufstr = c.substr(num_cols.length()+1); @@ -930,7 +929,6 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) //qDebug("Rows %i Cols %i",RangeGridRows,RangeGridCols); } int totPnt = RangeGridCols*RangeGridRows; - int nullCnt=0; // standard reading; pf.SetCurElement(i); for(int j=0;j