Removed harmless warnings

This commit is contained in:
Paolo Cignoni 2009-06-11 23:55:06 +00:00
parent a3eee3aa3c
commit 70d3ccfa23
3 changed files with 5 additions and 5 deletions

View File

@ -77,7 +77,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad)
int creaseCounter=0; int creaseCounter=0;
int startVn=m.vn; int startVn=m.vn;
FaceIterator fi; FaceIterator fi;
const FaceType * nextf; //const FaceType * nextf;
for(fi=m.face.begin();fi!=m.face.end();++fi) for(fi=m.face.begin();fi!=m.face.end();++fi)
for(int j=0;j<3;++j) for(int j=0;j<3;++j)
if(!(*fi).V(j)->IsV() ) // foreach unvisited vertex we loop around it searching for creases. if(!(*fi).V(j)->IsV() ) // foreach unvisited vertex we loop around it searching for creases.
@ -131,7 +131,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad)
int curVertexInd = indVec[faceInd*3+ j]; int curVertexInd = indVec[faceInd*3+ j];
assert(curVertexInd != -1); assert(curVertexInd != -1);
assert(curVertexInd < m.vn); assert(curVertexInd < m.vn);
if(curVertexInd < startVn) assert(curVertexInd == vertInd); if(curVertexInd < startVn) assert(size_t(curVertexInd) == vertInd);
if(curVertexInd >= startVn) if(curVertexInd >= startVn)
{ {
m.vert[curVertexInd].ImportLocal(*((*fi).V(j))); m.vert[curVertexInd].ImportLocal(*((*fi).V(j)));

View File

@ -425,7 +425,7 @@ ScalarType Histogram<ScalarType>::Percentile(ScalarType frac) const
assert(frac >= 0 && frac <= 1); assert(frac >= 0 && frac <= 1);
ScalarType sum=0,partsum=0; ScalarType sum=0,partsum=0;
int i; size_t i;
// useless summation just to be sure // useless summation just to be sure
for(i=0;i<H.size();i++) sum+=H[i]; for(i=0;i<H.size();i++) sum+=H[i];

View File

@ -47,7 +47,7 @@ static vcg::Trackball::Button QT2VCG (Qt::MouseButton qtbt, Qt::KeyboardModifier
} }
/// Takes a QT ket and QT KeyboardModifiers and returns the mouse wheel related Trackball::Button /// Takes a QT ket and QT KeyboardModifiers and returns the mouse wheel related Trackball::Button
static vcg::Trackball::Button QTWheel2VCG (Qt::KeyboardModifiers modifiers) inline vcg::Trackball::Button QTWheel2VCG (Qt::KeyboardModifiers modifiers)
{ {
int vcgbt = vcg::Trackball::WHEEL; int vcgbt = vcg::Trackball::WHEEL;
@ -59,7 +59,7 @@ static vcg::Trackball::Button QTWheel2VCG (Qt::KeyboardModifiers modifiers)
} }
/// Takes some QT KeyboardModifiers and returns the mouse wheel related Trackball::Button /// Takes some QT KeyboardModifiers and returns the mouse wheel related Trackball::Button
static vcg::Trackball::Button QTKey2VCG (int key, Qt::KeyboardModifiers modifiers) inline vcg::Trackball::Button QTKey2VCG (int key, Qt::KeyboardModifiers modifiers)
{ {
int vcgbt = 0; int vcgbt = 0;
switch (key) { switch (key) {