From 4055aecd5b09b49888306a4fbae6ea627d5f0fc5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 12 Jul 2023 13:09:18 -0600 Subject: [PATCH] Avoid a warning about an unused variable. --- include/deal.II/lac/affine_constraints.templates.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index f9a6e01eb6..1302a89413 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -782,8 +782,9 @@ AffineConstraints::close() chained_constraint_replaced = true; // look up the chain of constraints for this entry - const size_type dof_index = line.entries[entry].first; - const number weight = line.entries[entry].second; + [[maybe_unused]] const size_type dof_index = + line.entries[entry].first; + const number weight = line.entries[entry].second; Assert(dof_index != line.index, ExcMessage("Cycle in constraints detected!")); -- 2.39.5