Fix some unused-variable warnings with GCC 4.6

This commit is contained in:
Benoit Jacob 2011-10-30 23:55:20 -04:00
parent 4477843bdd
commit 6a1caf0351
5 changed files with 7 additions and 5 deletions

View File

@ -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);

View File

@ -125,4 +125,6 @@ void test_eigensolver_complex()
// Test problem size constructors
CALL_SUBTEST_5(ComplexEigenSolver<MatrixXf>(s));
EIGEN_UNUSED_VARIABLE(s)
}

View File

@ -118,4 +118,6 @@ void test_eigensolver_generic()
// Test problem size constructors
CALL_SUBTEST_5(EigenSolver<MatrixXf>(s));
EIGEN_UNUSED_VARIABLE(s)
}

View File

@ -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)
}

View File

@ -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>();