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

@@ -34,9 +34,8 @@ void test_first_aligned_helper(Scalar *array, int size)
template<typename Scalar>
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<Scalar>::size == 1 || ei_first_aligned(array, size) == size);
}