From 95f8a738ea23cf7d6f86ca99eddb5b22045c7f4b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 25 Jun 2013 11:42:04 +0200 Subject: Introduce a TEST_SET_BUT_UNUSED_VARIABLE macro for initialized but unused variables in the unit tests and also fix a few other warnings. --- test/jacobisvd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/jacobisvd.cpp') diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp index 8fda8d261..76157c30f 100644 --- a/test/jacobisvd.cpp +++ b/test/jacobisvd.cpp @@ -324,8 +324,10 @@ void test_jacobisvd() int r = internal::random(1, 30), c = internal::random(1, 30); - r = r; // shuts down ICC's remark #593: variable "s" was set but never used - c = c; + + TEST_SET_BUT_UNUSED_VARIABLE(r) + TEST_SET_BUT_UNUSED_VARIABLE(c) + CALL_SUBTEST_7(( jacobisvd(MatrixXf(r,c)) )); CALL_SUBTEST_8(( jacobisvd(MatrixXcd(r,c)) )); (void) r; -- cgit v1.2.3