harmless gcc warnings in the samples

This commit is contained in:
Paolo Cignoni 2012-11-10 16:57:26 +00:00
parent feb77d945a
commit 7a8aba311b
4 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ bool UnitTest_Append(const char *filename1, const char *filename2)
return true;
}
int main(int argc ,char**argv)
int main(int /*argc*/ ,char**argv)
{
UnitTest_Append<MyMesh>(argv[1],"out.ply");
UnitTest_Append<OcfMesh>(argv[1],"out.ply");

View File

@ -48,7 +48,7 @@ class MyFace : public vcg::Face< MyUsedTypes, vcg::face::FFAdj, vcg::face::V
class MyEdge : public vcg::Edge<MyUsedTypes>{};
class MyMesh : public vcg::tri::TriMesh< std::vector<MyVertex>, std::vector<MyFace> , std::vector<MyEdge> > {};
int main( int argc, char **argv )
int main( int /*argc*/, char **/*argv*/ )
{
MyMesh m;
vcg::tri::Torus(m,30,10);

View File

@ -55,7 +55,7 @@ class MyMesh : public vcg::tri::TriMesh< std::vector<MyVertex>, std::vector<M
float EvalPlane(vcg::Plane3f &pl, vcg::Point3f &dir, std::vector<vcg::Point3f> posVec)
{
float off=0;
for(int i=0;i<posVec.size();++i)
for(size_t i=0;i<posVec.size();++i)
off += fabs(vcg::SignedDistancePlanePoint(pl,posVec[i]));
off/=float(posVec.size());

View File

@ -47,7 +47,7 @@ class MyMesh : public vcg::tri::TriMesh< std::vector< MyVertex>, std::vector< M
typedef SimpleVolume<SimpleVoxel> MyVolume;
int main(int argc , char *argv[])
int main(int /*argc*/ , char **/*argv*/)
{
MyVolume volume;