From 6422efa5c9fc1c87aabc0e4d39ec04885b5038be Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sun, 18 Sep 2022 16:01:31 +0200 Subject: [PATCH] Avoid warning regarding uninitialized variable --- include/deal.II/lac/tensor_product_matrix.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.39.5