]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warnings with gcc-13.1 15206/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 12 May 2023 17:38:40 +0000 (13:38 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 12 May 2023 17:40:30 +0000 (13:40 -0400)
include/deal.II/matrix_free/fe_evaluation.h
source/grid/grid_generator.cc

index 2af88182be5a9649098ef1aab1345bd6b3a2bf7a..077067d7a697692e667cdcd7e85f6c0d63413c28 100644 (file)
@@ -3871,7 +3871,9 @@ FEEvaluationBase<dim, n_components_, Number, is_face, VectorizedArrayType>::
                    VectorizedArrayType::size()>
           vector_ptrs = {};
 
-        for (unsigned int v = 0; v < n_filled_lanes; ++v)
+        const auto upper_bound =
+          std::min<unsigned int>(n_filled_lanes, VectorizedArrayType::size());
+        for (unsigned int v = 0; v < upper_bound; ++v)
           {
             if (mask[v] == false)
               {
index 23dad9ea3e9d9b3c7c23952595640f3fda26f072..24f41c29076f315dcbff1fca8dff0b7b1c43c7bc 100644 (file)
@@ -6644,7 +6644,7 @@ namespace GridGenerator
           else if (structdim == 2)
             {
               // rotate the vertex numbers so that the lowest one is first
-              std::array<unsigned int, 4> renumbering;
+              std::array<unsigned int, 4> renumbering{};
               std::copy(std::begin(cell_data.vertices),
                         std::end(cell_data.vertices),
                         renumbering.begin());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.