From 4c5778d29da3ddb21b3f1c64b8179571c7ba8847 Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 8 Jun 2010 15:52:00 +0200 Subject: Made the supression of unused variables portable. EIGEN_UNUSED is not supported on non GCC systems. --- test/first_aligned.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/first_aligned.cpp') diff --git a/test/first_aligned.cpp b/test/first_aligned.cpp index 5fb806298..687f4a5dc 100644 --- a/test/first_aligned.cpp +++ b/test/first_aligned.cpp @@ -34,9 +34,8 @@ void test_first_aligned_helper(Scalar *array, int size) template void test_none_aligned_helper(Scalar *array, int size) { - // Suppress 'unreferenced formal parameter's warnings. - (void)array; - (void)size; + EIGEN_UNUSED_VARIABLE(array); + EIGEN_UNUSED_VARIABLE(size); VERIFY(ei_packet_traits::size == 1 || ei_first_aligned(array, size) == size); } -- cgit v1.2.3