From: Martin Kronbichler Date: Sun, 18 Sep 2022 14:01:31 +0000 (+0200) Subject: Avoid warning regarding uninitialized variable X-Git-Tag: v9.5.0-rc1~956^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14282%2Fhead;p=dealii.git Avoid warning regarding uninitialized variable --- diff --git a/include/deal.II/lac/tensor_product_matrix.h b/include/deal.II/lac/tensor_product_matrix.h index 8734f694a2..14f7e023b1 100644 --- a/include/deal.II/lac/tensor_product_matrix.h +++ b/include/deal.II/lac/tensor_product_matrix.h @@ -341,7 +341,8 @@ namespace internal std::array, dim> & eigenvectors, std::array, dim> & eigenvalues) { - const int n_rows_1d = mass_matrices[0].n_cols(); + const unsigned int n_rows_1d = mass_matrices[0].n_cols(); + (void)n_rows_1d; for (unsigned int dir = 0; dir < dim; ++dir) { @@ -376,7 +377,7 @@ namespace internal std::array>, dim> &eigenvectors, std::array>, dim> &eigenvalues) { - const int n_rows_1d = mass_matrix[0].n_cols(); + const unsigned int n_rows_1d = mass_matrix[0].n_cols(); constexpr unsigned int macro_size = VectorizedArray::size(); const std::size_t nm_flat_size_max = n_rows_1d * n_rows_1d * macro_size; const std::size_t n_flat_size_max = n_rows_1d * macro_size;