From: Wolfgang Bangerth Date: Wed, 12 Jul 2023 19:09:18 +0000 (-0600) Subject: Avoid a warning about an unused variable. X-Git-Tag: relicensing~672^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4055aecd5b09b49888306a4fbae6ea627d5f0fc5;p=dealii.git Avoid a warning about an unused variable. --- 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!"));