From d6a680cb49e1c5b17e5c52df63a771b5b739ad56 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 31 Dec 2023 16:10:01 -0700 Subject: [PATCH] Remove a likely mistaken attribute. --- include/deal.II/base/mpi_consensus_algorithms.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/deal.II/base/mpi_consensus_algorithms.h b/include/deal.II/base/mpi_consensus_algorithms.h index 73f2cfb51f..7d5aafb2fd 100644 --- a/include/deal.II/base/mpi_consensus_algorithms.h +++ b/include/deal.II/base/mpi_consensus_algorithms.h @@ -1276,21 +1276,7 @@ namespace Utilities /** * Return whether a vector of targets (MPI ranks) has only unique * elements. - * - * This function is only used within assertions, which causes GCC - * to issue a warning in release mode that due to -Werror then causes an - * error. We suppress this by using the [[gnu::unused]] error (because - * the - * [[maybe_unused]] attribute is only supported from C++17 forward). - * - * Unfortunately, in contrast to what the standard says, the Microsoft - * compiler does not ignore the gnu::unused attribute as it should, - * and then produces an error of its own. So we disable the attribute - * for that compiler. */ -# ifndef DEAL_II_MSVC - [[gnu::unused]] -# endif inline bool has_unique_elements(const std::vector &targets) { -- 2.39.5