fix few warnings reported by clang

This commit is contained in:
Thomas Capricelli 2011-07-07 22:20:04 +02:00
parent c52268c649
commit 08074843ac
3 changed files with 10 additions and 0 deletions

View File

@ -284,6 +284,7 @@ class BandMatrixWrapper : public BandMatrixBase<BandMatrixWrapper<_CoefficientsT
: m_coeffs(coeffs), : m_coeffs(coeffs),
m_rows(rows), m_supers(supers), m_subs(subs) m_rows(rows), m_supers(supers), m_subs(subs)
{ {
EIGEN_UNUSED_VARIABLE(cols);
//internal::assert(coeffs.cols()==cols() && (supers()+subs()+1)==coeffs.rows()); //internal::assert(coeffs.cols()==cols() && (supers()+subs()+1)==coeffs.rows());
} }

View File

@ -111,6 +111,7 @@ template<typename Derived> class TriangularBase : public EigenBase<Derived>
EIGEN_ONLY_USED_FOR_DEBUG(col); EIGEN_ONLY_USED_FOR_DEBUG(col);
eigen_assert(col>=0 && col<cols() && row>=0 && row<rows()); eigen_assert(col>=0 && col<cols() && row>=0 && row<rows());
const int mode = int(Mode) & ~SelfAdjoint; const int mode = int(Mode) & ~SelfAdjoint;
EIGEN_ONLY_USED_FOR_DEBUG(mode);
eigen_assert((mode==Upper && col>=row) eigen_assert((mode==Upper && col>=row)
|| (mode==Lower && col<=row) || (mode==Lower && col<=row)
|| ((mode==StrictlyUpper || mode==UnitUpper) && col>row) || ((mode==StrictlyUpper || mode==UnitUpper) && col>row)

View File

@ -294,11 +294,19 @@ struct kissfft_impl
inline inline
void fwd2( Complex * dst,const Complex *src,int n0,int n1) void fwd2( Complex * dst,const Complex *src,int n0,int n1)
{ {
EIGEN_UNUSED_VARIABLE(dst);
EIGEN_UNUSED_VARIABLE(src);
EIGEN_UNUSED_VARIABLE(n0);
EIGEN_UNUSED_VARIABLE(n1);
} }
inline inline
void inv2( Complex * dst,const Complex *src,int n0,int n1) void inv2( Complex * dst,const Complex *src,int n0,int n1)
{ {
EIGEN_UNUSED_VARIABLE(dst);
EIGEN_UNUSED_VARIABLE(src);
EIGEN_UNUSED_VARIABLE(n0);
EIGEN_UNUSED_VARIABLE(n1);
} }
// real-to-complex forward FFT // real-to-complex forward FFT