diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/basicstuff.cpp | 3 | ||||
-rw-r--r-- | test/eigensolver_complex.cpp | 2 | ||||
-rw-r--r-- | test/eigensolver_generic.cpp | 2 | ||||
-rw-r--r-- | test/eigensolver_selfadjoint.cpp | 2 | ||||
-rw-r--r-- | test/linearstructure.cpp | 3 |
5 files changed, 7 insertions, 5 deletions
diff --git a/test/basicstuff.cpp b/test/basicstuff.cpp index 47ba23154..76ecffd68 100644 --- a/test/basicstuff.cpp +++ b/test/basicstuff.cpp @@ -42,11 +42,8 @@ template<typename MatrixType> void basicStuff(const MatrixType& m) m2 = MatrixType::Random(rows, cols), m3(rows, cols), mzero = MatrixType::Zero(rows, cols), - identity = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> - ::Identity(rows, rows), square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime>::Random(rows, rows); VectorType v1 = VectorType::Random(rows), - v2 = VectorType::Random(rows), vzero = VectorType::Zero(rows); SquareMatrixType sm1 = SquareMatrixType::Random(rows,rows), sm2(rows,rows); diff --git a/test/eigensolver_complex.cpp b/test/eigensolver_complex.cpp index 4db0f3f24..1cd55a2cd 100644 --- a/test/eigensolver_complex.cpp +++ b/test/eigensolver_complex.cpp @@ -125,4 +125,6 @@ void test_eigensolver_complex() // Test problem size constructors CALL_SUBTEST_5(ComplexEigenSolver<MatrixXf>(s)); + + EIGEN_UNUSED_VARIABLE(s) } diff --git a/test/eigensolver_generic.cpp b/test/eigensolver_generic.cpp index 15d5d5280..efacdb2b3 100644 --- a/test/eigensolver_generic.cpp +++ b/test/eigensolver_generic.cpp @@ -118,4 +118,6 @@ void test_eigensolver_generic() // Test problem size constructors CALL_SUBTEST_5(EigenSolver<MatrixXf>(s)); + + EIGEN_UNUSED_VARIABLE(s) } diff --git a/test/eigensolver_selfadjoint.cpp b/test/eigensolver_selfadjoint.cpp index a98f1dbf8..49e22795a 100644 --- a/test/eigensolver_selfadjoint.cpp +++ b/test/eigensolver_selfadjoint.cpp @@ -204,5 +204,7 @@ void test_eigensolver_selfadjoint() s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE/4); CALL_SUBTEST_8(SelfAdjointEigenSolver<MatrixXf>(s)); CALL_SUBTEST_8(Tridiagonalization<MatrixXf>(s)); + + EIGEN_UNUSED_VARIABLE(s) } diff --git a/test/linearstructure.cpp b/test/linearstructure.cpp index c638c07e5..bbfdaacc1 100644 --- a/test/linearstructure.cpp +++ b/test/linearstructure.cpp @@ -39,8 +39,7 @@ template<typename MatrixType> void linearStructure(const MatrixType& m) // to test it, hence I consider that we will have tested Random.h MatrixType m1 = MatrixType::Random(rows, cols), m2 = MatrixType::Random(rows, cols), - m3(rows, cols), - mzero = MatrixType::Zero(rows, cols); + m3(rows, cols); Scalar s1 = internal::random<Scalar>(); while (internal::abs(s1)<1e-3) s1 = internal::random<Scalar>(); |