From: Daniel Arndt Date: Thu, 9 Feb 2023 21:29:00 +0000 (+0000) Subject: Address some more warnings X-Git-Tag: v9.5.0-rc1~537^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14783%2Fhead;p=dealii.git Address some more warnings --- 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