aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product_notemporary.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_notemporary.cpp
parent63464754ef747e0c3d16c5da6fd4d4228ab8dd7a (diff)
Workaround dead store warnings in unit tests.
Diffstat (limited to 'test/product_notemporary.cpp')
-rw-r--r--test/product_notemporary.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/product_notemporary.cpp b/test/product_notemporary.cpp
index 805cc8939..898f1d1cb 100644
--- a/test/product_notemporary.cpp
+++ b/test/product_notemporary.cpp
@@ -129,11 +129,12 @@ void test_product_notemporary()
for(int i = 0; i < g_repeat; i++) {
s = internal::random<int>(16,EIGEN_TEST_MAX_SIZE);
CALL_SUBTEST_1( product_notemporary(MatrixXf(s, s)) );
- s = internal::random<int>(16,EIGEN_TEST_MAX_SIZE);
CALL_SUBTEST_2( product_notemporary(MatrixXd(s, s)) );
+ TEST_SET_BUT_UNUSED_VARIABLE(s)
+
s = internal::random<int>(16,EIGEN_TEST_MAX_SIZE/2);
CALL_SUBTEST_3( product_notemporary(MatrixXcf(s,s)) );
- s = internal::random<int>(16,EIGEN_TEST_MAX_SIZE/2);
CALL_SUBTEST_4( product_notemporary(MatrixXcd(s,s)) );
+ TEST_SET_BUT_UNUSED_VARIABLE(s)
}
}