From 68fd3f1ce3042918342f0205280c2ec8b10f469b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 9 Jan 2022 13:29:27 -0700 Subject: [PATCH] Avoid an unused-variable warning. --- include/deal.II/fe/fe_tools_extrapolate.templates.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.5