]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix unused argument warning in TriaAccessor::line_index 17969/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 2 Jan 2025 14:44:28 +0000 (09:44 -0500)
committerTimo Heister <timo.heister@gmail.com>
Thu, 2 Jan 2025 14:44:28 +0000 (09:44 -0500)
This is got reported in #17968 with gcc 9.4 even though we disable the
warning in release mode. Maybe this is due to inlining.

include/deal.II/grid/tria_accessor.h

index 5eb6e412b0763f9e2f5c90ddd9c5611ff0fcd30b..1de8682655e7c5f0c89e22bd77a0bef5b1d4275b 100644 (file)
@@ -5395,6 +5395,7 @@ template <int structdim, int dim, int spacedim>
 inline unsigned int
 TriaAccessor<structdim, dim, spacedim>::line_index(const unsigned int i) const
 {
+  (void)i;
   AssertIndexRange(i, this->n_lines());
   Assert(structdim != 1,
          ExcMessage("You can't ask for the index of a line bounding a "

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.