From ee2d21458e4f21e8806e3f32a6d07aeeb9f4a376 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Fri, 28 Oct 2022 14:16:13 -0600 Subject: [PATCH] Fix some warnings. --- source/cgal/intersections.cc | 2 +- source/dofs/dof_handler_policy.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/cgal/intersections.cc b/source/cgal/intersections.cc index a92540520c..e7664bfc01 100644 --- a/source/cgal/intersections.cc +++ b/source/cgal/intersections.cc @@ -384,7 +384,7 @@ namespace CGALWrappers internal::mark_domains(cdt); std::array, 3> vertices; - for (const Face_handle &f : cdt.finite_face_handles()) + for (const Face_handle f : cdt.finite_face_handles()) { if (f->info().in_domain() && CGAL::to_double(cdt.triangle(f).area()) > tol) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index cfe4200b21..d79e3fdc9a 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -3661,7 +3661,7 @@ namespace internal // be assigned. types::global_dof_index n_identity_constrained_indices = 0; for (const auto &constrained_indices : all_constrained_indices) - for (const auto index : constrained_indices) + for (const auto &index : constrained_indices) if (renumbering[index.first] != numbers::invalid_dof_index) ++n_identity_constrained_indices; -- 2.39.5