aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_trmv.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-02-18 11:30:44 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-02-18 11:30:44 +0100
commit371d3bef3645193b9255a800ef69ddbb01eed9e4 (patch)
tree52b2d28d220fcc6fc679619177539d432cb1b368 /test/product_trmv.cpp
parent63464754ef747e0c3d16c5da6fd4d4228ab8dd7a (diff)
Workaround dead store warnings in unit tests.
Diffstat (limited to 'test/product_trmv.cpp')
-rw-r--r--test/product_trmv.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/product_trmv.cpp b/test/product_trmv.cpp
index 4c3c435c2..57a202afc 100644
--- a/test/product_trmv.cpp
+++ b/test/product_trmv.cpp
@@ -78,12 +78,14 @@ void test_product_trmv()
CALL_SUBTEST_1( trmv(Matrix<float, 1, 1>()) );
CALL_SUBTEST_2( trmv(Matrix<float, 2, 2>()) );
CALL_SUBTEST_3( trmv(Matrix3d()) );
+
s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2);
CALL_SUBTEST_4( trmv(MatrixXcf(s,s)) );
- s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE/2);
CALL_SUBTEST_5( trmv(MatrixXcd(s,s)) );
+ TEST_SET_BUT_UNUSED_VARIABLE(s)
+
s = internal::random<int>(1,EIGEN_TEST_MAX_SIZE);
CALL_SUBTEST_6( trmv(Matrix<float,Dynamic,Dynamic,RowMajor>(s, s)) );
+ TEST_SET_BUT_UNUSED_VARIABLE(s)
}
- TEST_SET_BUT_UNUSED_VARIABLE(s);
}