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/inverse.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/inverse.cpp') diff --git a/test/inverse.cpp b/test/inverse.cpp index 8dd35f6ac..8187b088d 100644 --- a/test/inverse.cpp +++ b/test/inverse.cpp @@ -87,7 +87,6 @@ template void inverse(const MatrixType& m) void test_inverse() { int s = 0; - s = s; // ICC shuts down ICC's remark #593: variable "s" was set but never used for(int i = 0; i < g_repeat; i++) { CALL_SUBTEST_1( inverse(Matrix()) ); CALL_SUBTEST_2( inverse(Matrix2d()) ); @@ -101,5 +100,5 @@ void test_inverse() CALL_SUBTEST_7( inverse(Matrix4d()) ); CALL_SUBTEST_7( inverse(Matrix()) ); } - EIGEN_UNUSED_VARIABLE(s) + TEST_SET_BUT_UNUSED_VARIABLE(s) } -- cgit v1.2.3