From: Daniel Arndt Date: Fri, 12 May 2023 17:38:40 +0000 (-0400) Subject: Fix warnings with gcc-13.1 X-Git-Tag: v9.5.0-rc1~242^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15206%2Fhead;p=dealii.git Fix warnings with gcc-13.1 --- diff --git a/include/deal.II/matrix_free/fe_evaluation.h b/include/deal.II/matrix_free/fe_evaluation.h index 2af88182be..077067d7a6 100644 --- a/include/deal.II/matrix_free/fe_evaluation.h +++ b/include/deal.II/matrix_free/fe_evaluation.h @@ -3871,7 +3871,9 @@ FEEvaluationBase:: VectorizedArrayType::size()> vector_ptrs = {}; - for (unsigned int v = 0; v < n_filled_lanes; ++v) + const auto upper_bound = + std::min(n_filled_lanes, VectorizedArrayType::size()); + for (unsigned int v = 0; v < upper_bound; ++v) { if (mask[v] == false) { diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 23dad9ea3e..24f41c2907 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -6644,7 +6644,7 @@ namespace GridGenerator else if (structdim == 2) { // rotate the vertex numbers so that the lowest one is first - std::array renumbering; + std::array renumbering{}; std::copy(std::begin(cell_data.vertices), std::end(cell_data.vertices), renumbering.begin());