From 9bf6092465012992bc9cbf7bfca8fb661e90012d Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Tue, 22 May 2018 10:24:56 +0200 Subject: [PATCH] Harmless warnings --- vcg/simplex/tetrahedron/component.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/vcg/simplex/tetrahedron/component.h b/vcg/simplex/tetrahedron/component.h index 1348fbf0..215f8f7e 100644 --- a/vcg/simplex/tetrahedron/component.h +++ b/vcg/simplex/tetrahedron/component.h @@ -45,12 +45,12 @@ All the Components that can be added to a tetra should be defined in the namespa template class EmptyCore : public T { public: //Empty vertexref - inline typename T::VertexType * & V( const int j ) { assert(0); static typename T::VertexType *vp=0; return vp; } - inline typename T::VertexType * const & V( const int j ) const { assert(0); static typename T::VertexType *vp=0; return vp; } - inline typename T::VertexType * const cV( const int j ) const { assert(0); static typename T::VertexType *vp=0; return vp; } - inline typename T::CoordType & P( const int j ) { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; } - inline const typename T::CoordType & P( const int j ) const { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; } - inline const typename T::CoordType &cP( const int j ) const { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; } + inline typename T::VertexType * & V( const int ) { assert(0); static typename T::VertexType *vp=0; return vp; } + inline typename T::VertexType * const & V( const int ) const { assert(0); static typename T::VertexType *vp=0; return vp; } + inline typename T::VertexType * const cV( const int ) const { assert(0); static typename T::VertexType *vp=0; return vp; } + inline typename T::CoordType & P( const int ) { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; } + inline const typename T::CoordType & P( const int ) const { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; } + inline const typename T::CoordType &cP( const int ) const { assert(0); static typename T::CoordType coord(0, 0, 0); return coord; } static bool HasVertexRef() { return false; } static bool HasTVAdjacency() { return false; } @@ -109,10 +109,10 @@ public: typename T::TetraPointer & TTp ( const int ) { static typename T::TetraPointer tp=0; assert(0); return tp; } typename T::TetraPointer const cTTp( const int ) const { static typename T::TetraPointer const tp=0; assert(0); return tp; } - char & VTi( const int j ) { static char z=0; assert(0); return z; } - char cVTi( const int j ) const { static char z=0; assert(0); return z; } - char & TTi( const int j ) { static char z=0; assert(0); return z; } - char cTTi( const int j ) const { static char z=0; assert(0); return z; } + char & VTi( const int ) { static char z=0; assert(0); return z; } + char cVTi( const int ) const { static char z=0; assert(0); return z; } + char & TTi( const int ) { static char z=0; assert(0); return z; } + char cTTi( const int ) const { static char z=0; assert(0); return z; } bool IsVTInitialized(const int j) const {return static_cast(this)->cVTi(j)!=-1;} void VTClear(int j) { @@ -178,7 +178,7 @@ public: inline typename T::VertexType * & V( const int j ) { assert(j>=0 && j<4); return v[j]; } inline typename T::VertexType * const cV( const int j ) const { assert(j>=0 && j<4); return v[j]; } - inline size_t const cFtoVi (const int f, const int j) const { assert(f >= 0 && f < 4); assert(j >= 0 && j < 3); return findices[f][j]; } + inline size_t cFtoVi (const int f, const int j) const { assert(f >= 0 && f < 4); assert(j >= 0 && j < 3); return findices[f][j]; } // Shortcut for tetra points inline CoordType & P( const int j ) { assert(j>=0 && j<4); return v[j]->P(); }