harmless gcc warnings in the samples
This commit is contained in:
parent
feb77d945a
commit
7a8aba311b
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue