From 2d77b71bd10dc1224c707ed94d1f734792b4e682 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 9 Feb 2023 21:29:00 +0000 Subject: [PATCH] Address some more warnings --- include/deal.II/base/parsed_convergence_table.h | 6 +++--- source/base/data_out_base.cc | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/parsed_convergence_table.h b/include/deal.II/base/parsed_convergence_table.h index b7c996535d..b6788ca58a 100644 --- a/include/deal.II/base/parsed_convergence_table.h +++ b/include/deal.II/base/parsed_convergence_table.h @@ -609,9 +609,9 @@ ParsedConvergenceTable::error_from_exact(const Mapping &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 select_component( components_expr); diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index eacb91a2fa..6078014a0e 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -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 -- 2.39.5