From: Marc Fehling Date: Fri, 28 Oct 2022 20:16:13 +0000 (-0600) Subject: Fix some warnings. X-Git-Tag: v9.5.0-rc1~889^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14378%2Fhead;p=dealii.git Fix some warnings. --- 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;