From: Timo Heister Date: Thu, 2 Jan 2025 14:44:28 +0000 (-0500) Subject: fix unused argument warning in TriaAccessor::line_index X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d87f5a9ce3fc2f70cc62375005c122983748f75;p=dealii.git fix unused argument warning in TriaAccessor::line_index 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. --- diff --git a/include/deal.II/grid/tria_accessor.h b/include/deal.II/grid/tria_accessor.h index 5eb6e412b0..1de8682655 100644 --- a/include/deal.II/grid/tria_accessor.h +++ b/include/deal.II/grid/tria_accessor.h @@ -5395,6 +5395,7 @@ template inline unsigned int TriaAccessor::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 "