mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix more variable-set-but-not-used warnings on gcc 4.6
This commit is contained in:
@@ -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() );
|
||||
|
||||
Reference in New Issue
Block a user