From: Sanjeeb Poudel Date: Thu, 15 Aug 2024 22:21:53 +0000 (-0600) Subject: Replaced void cast with maybe_unused X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17504%2Fhead;p=dealii.git Replaced void cast with maybe_unused --- diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 13f9c3bff0..157ba26555 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -1578,7 +1578,6 @@ template <> double TriaAccessor<1, 1, 1>::extent_in_direction(const unsigned int axis) const { - (void)axis; AssertIndexRange(axis, 1); return this->diameter(); @@ -1589,7 +1588,6 @@ template <> double TriaAccessor<1, 1, 2>::extent_in_direction(const unsigned int axis) const { - (void)axis; AssertIndexRange(axis, 1); return this->diameter(); @@ -2248,7 +2246,6 @@ CellAccessor::set_direction_flag( // Some older compilers (GCC 9) print an unused variable warning about // new_direction_flag when it is only used in a subset of 'if constexpr' // statements - (void)new_direction_flag; Assert(this->used(), TriaAccessorExceptions::ExcCellNotUsed()); if constexpr (dim == spacedim) Assert(new_direction_flag == true,