removed harmless warnings
This commit is contained in:
parent
6b781dc660
commit
1a4c19c69f
|
@ -65,7 +65,7 @@ namespace vcg {
|
||||||
typedef typename SaveMeshType::FaceIterator FaceIterator;
|
typedef typename SaveMeshType::FaceIterator FaceIterator;
|
||||||
|
|
||||||
///Standard call for saving a mesh
|
///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;
|
FILE *fp;
|
||||||
fp = fopen(filename,"wb");
|
fp = fopen(filename,"wb");
|
||||||
|
|
|
@ -340,7 +340,7 @@ static const PropDescriptor &TristripDesc(int i)
|
||||||
static const PropDescriptor &RangeDesc(int i)
|
static const PropDescriptor &RangeDesc(int i)
|
||||||
{
|
{
|
||||||
static const PropDescriptor range_props[1] = {
|
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];
|
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 num_rows = "num_rows";
|
||||||
std::string &c = pf.comments[co];
|
std::string &c = pf.comments[co];
|
||||||
std::string bufstr,bufclean;
|
std::string bufstr,bufclean;
|
||||||
int i,n;
|
|
||||||
if( num_cols == c.substr(0,num_cols.length()) )
|
if( num_cols == c.substr(0,num_cols.length()) )
|
||||||
{
|
{
|
||||||
bufstr = c.substr(num_cols.length()+1);
|
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);
|
//qDebug("Rows %i Cols %i",RangeGridRows,RangeGridCols);
|
||||||
}
|
}
|
||||||
int totPnt = RangeGridCols*RangeGridRows;
|
int totPnt = RangeGridCols*RangeGridRows;
|
||||||
int nullCnt=0;
|
|
||||||
// standard reading;
|
// standard reading;
|
||||||
pf.SetCurElement(i);
|
pf.SetCurElement(i);
|
||||||
for(int j=0;j<totPnt;++j)
|
for(int j=0;j<totPnt;++j)
|
||||||
|
|
|
@ -222,7 +222,7 @@ static int OpenBinary( OpenMeshType &m, const char * filename, CallBackPos *cb=0
|
||||||
m.Clear();
|
m.Clear();
|
||||||
|
|
||||||
/* Skip the first line of the file */
|
/* Skip the first line of the file */
|
||||||
while(getc(fp) != '\n');
|
while(getc(fp) != '\n') { }
|
||||||
|
|
||||||
STLFacet f;
|
STLFacet f;
|
||||||
int cnt=0;
|
int cnt=0;
|
||||||
|
|
Loading…
Reference in New Issue