From: Wolfgang Bangerth Date: Thu, 26 Jun 2025 00:27:16 +0000 (-0600) Subject: Explicitly ignore the return value of a broadcast operation. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea2a353fc54c26f15f96b6dab1ab7638f8aa054;p=dealii.git Explicitly ignore the return value of a broadcast operation. --- diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h index 1ae7ebb812..28bff4f7d3 100644 --- a/include/deal.II/base/aligned_vector.h +++ b/include/deal.II/base/aligned_vector.h @@ -1813,9 +1813,9 @@ AlignedVector::replicate_across_communicator(const MPI_Comm communicator, // deadlock. So we just send the result of the broadcast() call to // nirvana on the root process and keep our current state. if (Utilities::MPI::this_mpi_process(shmem_roots_communicator) == 0) - Utilities::MPI::broadcast(shmem_roots_communicator, - *this, - shmem_roots_root_rank); + std::ignore = Utilities::MPI::broadcast(shmem_roots_communicator, + *this, + shmem_roots_root_rank); else *this = Utilities::MPI::broadcast(shmem_roots_communicator, *this,