removed harmless gcc warnings

This commit is contained in:
Paolo Cignoni 2010-03-02 23:17:15 +00:00
parent c2456526fd
commit d340b8b92a
4 changed files with 6 additions and 6 deletions

View File

@ -342,7 +342,7 @@ static void MakePureByRefine(MeshType &m){
assert(ev%2==0); // should be even by now
ev/=2; // I was counting each of them twice
int originalFaceNum = m.fn;
//int originalFaceNum = m.fn;
FaceIterator nfi = tri::Allocator<MeshType>::AddFaces(m,ef);
VertexIterator nvi = tri::Allocator<MeshType>::AddVertices(m,ev);

View File

@ -1382,7 +1382,7 @@ private:
static int RemoveTVertexByCollapse(MeshType &m, float threshold=40, bool repeat=true)
{
assert(m.HasPerVertexMark());
assert(tri::HasPerVertexMark(m));
//Counters for logging and convergence
int count, total = 0;

View File

@ -176,7 +176,7 @@ class AverageColorCell
typedef BasicGrid<typename MeshType::ScalarType> GridType;
public:
inline void AddFaceVertex(MeshType &m, FaceType &f, int i)
inline void AddFaceVertex(MeshType &/*m*/, FaceType &f, int i)
{
p+=f.cV(i)->cP();
c+=CoordType(f.cV(i)->C()[0],f.cV(i)->C()[1],f.cV(i)->C()[2]);

View File

@ -192,12 +192,12 @@ static void MultiFaceRandom( UpdateMeshType &m)
FaceIterator fi;
Color4b BaseColor = Color4b::Black;
FaceConstant(m,BaseColor);
int id=0;
int id_num=0;
for(fi=m.face.begin();fi!=m.face.end();++fi)
if(!(*fi).IsD())
{
id++;
if((*fi).C() == BaseColor) (*fi).C() = Color4b::Scatter(50, id%50,.4f,.7f);
id_num++;
if((*fi).C() == BaseColor) (*fi).C() = Color4b::Scatter(50, id_num%50,.4f,.7f);
for(int j=0;j<3;++j)
if((*fi).IsF(j))
{