From 8ea2a353fc54c26f15f96b6dab1ab7638f8aa054 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 25 Jun 2025 18:27:16 -0600 Subject: [PATCH] Explicitly ignore the return value of a broadcast operation. --- include/deal.II/base/aligned_vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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, -- 2.39.5