aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/selfadjoint.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-10-31 00:51:36 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2011-10-31 00:51:36 -0400
commit0609dbeec67df8f681afb34263c1be826831f534 (patch)
tree8fe219524dd2422b906432fbdd610f6818d0a003 /test/selfadjoint.cpp
parent6a1caf0351824c0366b436d829309f7a558d2d6c (diff)
fix more variable-set-but-not-used warnings on gcc 4.6
Diffstat (limited to 'test/selfadjoint.cpp')
-rw-r--r--test/selfadjoint.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/selfadjoint.cpp b/test/selfadjoint.cpp
index 364478b80..db66017c1 100644
--- a/test/selfadjoint.cpp
+++ b/test/selfadjoint.cpp
@@ -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() );