]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a warning about an unused variable.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 12 Jul 2023 19:09:18 +0000 (13:09 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 13 Jul 2023 23:04:39 +0000 (17:04 -0600)
include/deal.II/lac/affine_constraints.templates.h

index f9a6e01eb65d64f1ba5782562668d3bf76cf3413..1302a89413d47851427856356a278a937ec125e2 100644 (file)
@@ -782,8 +782,9 @@ AffineConstraints<number>::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!"));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.