From: Peter Munch Date: Sun, 5 Apr 2020 10:04:20 +0000 (+0200) Subject: Fix warning in Utilities::MPI for serial release build X-Git-Tag: v9.2.0-rc1~291^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08cbf82354455708800ca4f0b29f315e73633cf8;p=dealii.git Fix warning in Utilities::MPI for serial release build --- diff --git a/include/deal.II/base/mpi.templates.h b/include/deal.II/base/mpi.templates.h index 1088896367..4c0ea2c821 100644 --- a/include/deal.II/base/mpi.templates.h +++ b/include/deal.II/base/mpi.templates.h @@ -230,7 +230,7 @@ namespace Utilities T sum(const T &t, const MPI_Comm &mpi_communicator) { - T return_value; + T return_value{}; internal::all_reduce(MPI_SUM, ArrayView(&t, 1), mpi_communicator, @@ -335,7 +335,7 @@ namespace Utilities T max(const T &t, const MPI_Comm &mpi_communicator) { - T return_value; + T return_value{}; internal::all_reduce(MPI_MAX, ArrayView(&t, 1), mpi_communicator, @@ -377,7 +377,7 @@ namespace Utilities T min(const T &t, const MPI_Comm &mpi_communicator) { - T return_value; + T return_value{}; internal::all_reduce(MPI_MIN, ArrayView(&t, 1), mpi_communicator,