diff --git a/Eigen/Core b/Eigen/Core index 49bb4bfb0..de19ba6ec 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -55,6 +55,10 @@ #define EIGEN_DONT_VECTORIZE #endif +#ifdef __clang__ +#define EIGEN_DONT_VECTORIZE +#endif + #ifndef EIGEN_DONT_VECTORIZE #if defined (EIGEN_SSE2_BUT_NOT_OLD_GCC) || defined(EIGEN_SSE2_ON_MSVC_2008_OR_LATER) #define EIGEN_VECTORIZE diff --git a/Eigen/src/Array/VectorwiseOp.h b/Eigen/src/Array/VectorwiseOp.h index bb695c795..5e933f10b 100644 --- a/Eigen/src/Array/VectorwiseOp.h +++ b/Eigen/src/Array/VectorwiseOp.h @@ -381,7 +381,7 @@ template class VectorwiseOp const Reverse reverse() const { return Reverse( _expression() ); } - const Replicate + const Replicate replicate(int factor) const; /** \nonstableyet diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 7ffddcbf8..eddabf4b9 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -218,7 +218,7 @@ inline float ei_norm1(const std::complex &x) { return(ei_abs(x.real()) + inline std::complex ei_exp(std::complex x) { return std::exp(x); } inline std::complex ei_sin(std::complex x) { return std::sin(x); } inline std::complex ei_cos(std::complex x) { return std::cos(x); } -inline std::complex ei_atan2(std::complex, std::complex ) { ei_assert(false); return 0; } +inline std::complex ei_atan2(std::complex, std::complex ) { ei_assert(false); return 0.f; } template<> inline std::complex ei_random() { @@ -255,7 +255,7 @@ inline double ei_norm1(const std::complex &x) { return(ei_abs(x.real()) inline std::complex ei_exp(std::complex x) { return std::exp(x); } inline std::complex ei_sin(std::complex x) { return std::sin(x); } inline std::complex ei_cos(std::complex x) { return std::cos(x); } -inline std::complex ei_atan2(std::complex, std::complex) { ei_assert(false); return 0; } +inline std::complex ei_atan2(std::complex, std::complex) { ei_assert(false); return 0.; } template<> inline std::complex ei_random() { diff --git a/Eigen/src/Core/MatrixStorage.h b/Eigen/src/Core/MatrixStorage.h index 8bfa728b6..584ba8ca3 100644 --- a/Eigen/src/Core/MatrixStorage.h +++ b/Eigen/src/Core/MatrixStorage.h @@ -98,7 +98,7 @@ template class ei_matrix_storage inline explicit ei_matrix_storage() {} inline ei_matrix_storage(ei_constructor_without_unaligned_array_assert) {} inline ei_matrix_storage(int,int,int) {} - inline void swap(ei_matrix_storage& other) {} + inline void swap(ei_matrix_storage& ) {} inline static int rows(void) {return _Rows;} inline static int cols(void) {return _Cols;} inline void resize(int,int,int) {} diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index aaf781d1f..172355aa6 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -95,12 +95,14 @@ template class TriangularBase : public AnyMatrixBase || ((Mode==StrictlyLowerTriangular || Mode==UnitLowerTriangular) && col lhs(_lhs,lhsStride); - ei_const_blas_data_mapper rhs(_rhs,rhsStride); if (ConjugateRhs) alpha = ei_conj(alpha); diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index ecc13dab4..bfc6ff686 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -407,10 +407,10 @@ public: ei_aligned_free( p ); } - bool operator!=(const aligned_allocator& other) const + bool operator!=(const aligned_allocator& ) const { return false; } - bool operator==(const aligned_allocator& other) const + bool operator==(const aligned_allocator& ) const { return true; } }; diff --git a/Eigen/src/Core/util/XprHelper.h b/Eigen/src/Core/util/XprHelper.h index 2a9feaeeb..e00ff3606 100644 --- a/Eigen/src/Core/util/XprHelper.h +++ b/Eigen/src/Core/util/XprHelper.h @@ -109,7 +109,7 @@ template struct ei_size_at_compile_time * in order to avoid a useless copy */ -template::Flags&SparseBit> class ei_eval; +template::Flags&SparseBit> struct ei_eval; template struct ei_eval { diff --git a/Eigen/src/Eigenvalues/Tridiagonalization.h b/Eigen/src/Eigenvalues/Tridiagonalization.h index d8dcfb047..58adb38e8 100644 --- a/Eigen/src/Eigenvalues/Tridiagonalization.h +++ b/Eigen/src/Eigenvalues/Tridiagonalization.h @@ -197,7 +197,6 @@ void Tridiagonalization::_compute(MatrixType& matA, CoeffVectorType& { assert(matA.rows()==matA.cols()); int n = matA.rows(); - Matrix aux(n); for (int i = 0; i