diff options
author | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-08 15:52:00 +0200 |
---|---|---|
committer | Hauke Heibel <hauke.heibel@gmail.com> | 2010-06-08 15:52:00 +0200 |
commit | 4c5778d29da3ddb21b3f1c64b8179571c7ba8847 (patch) | |
tree | 467023b7c1fdd44d724c6ed70fd8aa47a6a0a9e3 /test/triangular.cpp | |
parent | 2a64fa49475b64a7c7bcd560359d5f67180322e3 (diff) |
Made the supression of unused variables portable.
EIGEN_UNUSED is not supported on non GCC systems.
Diffstat (limited to 'test/triangular.cpp')
-rw-r--r-- | test/triangular.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/triangular.cpp b/test/triangular.cpp index d6d64e595..12452515e 100644 --- a/test/triangular.cpp +++ b/test/triangular.cpp @@ -235,8 +235,8 @@ void test_triangular() { for(int i = 0; i < g_repeat ; i++) { - EIGEN_UNUSED int r = ei_random<int>(2,20); - EIGEN_UNUSED int c = ei_random<int>(2,20); + int r = ei_random<int>(2,20); EIGEN_UNUSED_VARIABLE(r); + int c = ei_random<int>(2,20); EIGEN_UNUSED_VARIABLE(c); CALL_SUBTEST_1( triangular_square(Matrix<float, 1, 1>()) ); CALL_SUBTEST_2( triangular_square(Matrix<float, 2, 2>()) ); |