]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replaced void cast with maybe_unused 17504/head
authorSanjeeb Poudel <paudelsanjeeb@gmail.com>
Thu, 15 Aug 2024 22:21:53 +0000 (16:21 -0600)
committerSanjeeb Poudel <paudelsanjeeb@gmail.com>
Thu, 15 Aug 2024 22:22:40 +0000 (16:22 -0600)
source/grid/tria_accessor.cc

index 13f9c3bff0bedc840708fd97d6044bfc2bdc6ce1..157ba265555b19c9583fdf15ceaa0d48c60d0598 100644 (file)
@@ -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<dim, spacedim>::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,

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.