Made the supression of unused variables portable.

EIGEN_UNUSED is not supported on non GCC systems.
This commit is contained in:
Hauke Heibel
2010-06-08 15:52:00 +02:00
parent 2a64fa4947
commit 4c5778d29d
6 changed files with 13 additions and 10 deletions

View File

@@ -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>()) );