fix more variable-set-but-not-used warnings on gcc 4.6

This commit is contained in:
Benoit Jacob
2011-10-31 00:51:36 -04:00
parent 6a1caf0351
commit 0609dbeec6
10 changed files with 18 additions and 44 deletions

View File

@@ -54,7 +54,8 @@ template<typename MatrixType> void selfadjoint(const MatrixType& m)
void bug_159()
{
Matrix3d m = Matrix3d::Random().selfadjointView<Lower>();
Matrix3d m = Matrix3d::Random().selfadjointView<Lower>();
EIGEN_UNUSED_VARIABLE(m)
}
void test_selfadjoint()
@@ -68,6 +69,8 @@ void test_selfadjoint()
CALL_SUBTEST_3( selfadjoint(Matrix3cf()) );
CALL_SUBTEST_4( selfadjoint(MatrixXcd(s,s)) );
CALL_SUBTEST_5( selfadjoint(Matrix<float,Dynamic,Dynamic,RowMajor>(s, s)) );
EIGEN_UNUSED_VARIABLE(s)
}
CALL_SUBTEST_1( bug_159() );