Fix some unused or not initialized related warnings.

This commit is contained in:
Gael Guennebaud
2013-02-15 14:05:37 +01:00
parent 19f699ded0
commit a1091caa43
3 changed files with 14 additions and 3 deletions

View File

@@ -449,6 +449,7 @@ void test_sparse_basic()
{
for(int i = 0; i < g_repeat; i++) {
int s = Eigen::internal::random<int>(1,50);
EIGEN_UNUSED_VARIABLE(s);
CALL_SUBTEST_1(( sparse_basic(SparseMatrix<double>(8, 8)) ));
CALL_SUBTEST_2(( sparse_basic(SparseMatrix<std::complex<double>, ColMajor>(s, s)) ));
CALL_SUBTEST_2(( sparse_basic(SparseMatrix<std::complex<double>, RowMajor>(s, s)) ));

View File

@@ -40,5 +40,7 @@ void test_unalignedcount()
#else
// The following line is to eliminate "variable not used" warnings
nb_load = nb_loadu = nb_store = nb_storeu = 0;
int a(0), b(0);
VERIFY(a==b);
#endif
}