]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove a likely mistaken attribute. 16396/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 31 Dec 2023 23:10:01 +0000 (16:10 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 31 Dec 2023 23:10:01 +0000 (16:10 -0700)
include/deal.II/base/mpi_consensus_algorithms.h

index 73f2cfb51f73c9bf0feff2c72a745f0c42f79174..7d5aafb2fdaa14ff043a258324363bb46d1fc62c 100644 (file)
@@ -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<unsigned int> &targets)
         {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.