From: Daniel Arndt Date: Thu, 19 Jul 2018 17:18:19 +0000 (+0200) Subject: Fix some warnings in tests X-Git-Tag: v9.1.0-rc1~910^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5336f5a5f7d30fb3367dff535f868bec62ffcfbf;p=dealii.git Fix some warnings in tests --- diff --git a/tests/scalapack/scalapack_06.cc b/tests/scalapack/scalapack_06.cc index a01ab12a14..78aee52954 100644 --- a/tests/scalapack/scalapack_06.cc +++ b/tests/scalapack/scalapack_06.cc @@ -117,8 +117,8 @@ test(const unsigned int size, &info); AssertThrow(info == 0, LAPACKSupport::ExcErrorCode("syev", info)); - for (int i = 0; i < max_n_eigenvalues; ++i) - for (int j = 0; j < size; ++j) + for (unsigned int i = 0; i < max_n_eigenvalues; ++i) + for (unsigned int j = 0; j < size; ++j) s_eigenvectors_[i][j] = lapack_A[(size - 1 - i) * size + j]; } diff --git a/tests/scalapack/scalapack_06b.cc b/tests/scalapack/scalapack_06b.cc index 8f303ca473..707aecfeeb 100644 --- a/tests/scalapack/scalapack_06b.cc +++ b/tests/scalapack/scalapack_06b.cc @@ -118,8 +118,8 @@ test(const unsigned int size, &info); AssertThrow(info == 0, LAPACKSupport::ExcErrorCode("syev", info)); - for (int i = 0; i < max_n_eigenvalues; ++i) - for (int j = 0; j < size; ++j) + for (unsigned int i = 0; i < max_n_eigenvalues; ++i) + for (unsigned int j = 0; j < size; ++j) s_eigenvectors_[i][j] = lapack_A[(size - 1 - i) * size + j]; } diff --git a/tests/scalapack/scalapack_15.cc b/tests/scalapack/scalapack_15.cc index 69848882e5..e29fc69cbb 100644 --- a/tests/scalapack/scalapack_15.cc +++ b/tests/scalapack/scalapack_15.cc @@ -156,8 +156,8 @@ test(const unsigned int size, &info); AssertThrow(info == 0, LAPACKSupport::ExcErrorCode("syevr", info)); - for (int i = 0; i < max_n_eigenvalues; ++i) - for (int j = 0; j < size; ++j) + for (unsigned int i = 0; i < max_n_eigenvalues; ++i) + for (unsigned int j = 0; j < size; ++j) s_eigenvectors_[i][j] = eigenvectors[(size - 1 - i) * size + j]; }