]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Address some more warnings 14783/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 9 Feb 2023 21:29:00 +0000 (21:29 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 11 Feb 2023 04:15:15 +0000 (23:15 -0500)
include/deal.II/base/parsed_convergence_table.h
source/base/data_out_base.cc

index b7c996535d0cf90dceeda56b1b9f0e7c290b3d39..b6788ca58ae8a1dc13c733ce03733cf3b2d90aa2 100644 (file)
@@ -609,9 +609,9 @@ ParsedConvergenceTable::error_from_exact(const Mapping<dim, spacedim> &mapping,
             continue;
 
           auto components_expr = zero_components;
-          for (unsigned int i = 0; i < n_components; ++i)
-            if (mask[i] == true)
-              components_expr[i] = weight_components[i];
+          for (unsigned int j = 0; j < n_components; ++j)
+            if (mask[j] == true)
+              components_expr[j] = weight_components[j];
 
           FunctionFromFunctionObjects<spacedim> select_component(
             components_expr);
index eacb91a2fa91bd1ef1a0ed6cb8c97c1a992833b9..6078014a0e9701f275c8d644b7ec7901dd0a40b6 100644 (file)
@@ -9086,8 +9086,6 @@ DataOutBase::write_hdf5_parallel(
       "DataOutBase was asked to write HDF5 output for a space dimension of 1. "
       "HDF5 only supports datasets that live in 2 or 3 dimensions."));
 
-  int ierr = 0;
-  (void)ierr;
 #ifndef DEAL_II_WITH_HDF5
   // throw an exception, but first make sure the compiler does not warn about
   // the now unused function arguments
@@ -9144,7 +9142,7 @@ DataOutBase::write_hdf5_parallel(
                                    split_comm);
     }
 
-  ierr = MPI_Comm_free(&split_comm);
+  const int ierr = MPI_Comm_free(&split_comm);
   AssertThrowMPI(ierr);
 
 #endif

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.