From: Wolfgang Bangerth Date: Sun, 9 Jan 2022 20:29:27 +0000 (-0700) Subject: Avoid an unused-variable warning. X-Git-Tag: v9.4.0-rc1~636^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68fd3f1ce3042918342f0205280c2ec8b10f469b;p=dealii.git Avoid an unused-variable warning. --- diff --git a/include/deal.II/fe/fe_tools_extrapolate.templates.h b/include/deal.II/fe/fe_tools_extrapolate.templates.h index 6f168e9990..1558a2a734 100644 --- a/include/deal.II/fe/fe_tools_extrapolate.templates.h +++ b/include/deal.II/fe/fe_tools_extrapolate.templates.h @@ -1808,8 +1808,11 @@ namespace FETools // make sure that each cell on the coarsest level is at least once refined, // otherwise, these cells can't be treated and would generate a bogus result for (const auto &cell : dof2.cell_iterators_on_level(0)) - Assert(cell->has_children() || cell->is_artificial(), - ExcGridNotRefinedAtLeastOnce()); + { + (void)cell; + Assert(cell->has_children() || cell->is_artificial(), + ExcGridNotRefinedAtLeastOnce()); + } internal::BlockType u3;