From 1cf91329684a2481cad5f38acff300cef7950914 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 5 Sep 2018 11:04:16 -0400 Subject: [PATCH] fix unused lambda capture warning /ssd/deal-git/source/dofs/dof_handler_policy.cc:1998:48: warning: lambda capture 'i' is not used [-Wunused-lambda-capture] --- source/dofs/dof_handler_policy.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 0f60a87f30..8b255be4d1 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -1987,23 +1987,20 @@ namespace internal { Threads::TaskGroup<> tasks; - unsigned int i = 0; - tasks += Threads::new_task([&, i]() { + tasks += Threads::new_task([&]() { merge_invalid_vertex_dofs_on_ghost_interfaces(dof_handler); }); if (dim > 1) { - ++i; - tasks += Threads::new_task([&, i]() { + tasks += Threads::new_task([&]() { merge_invalid_line_dofs_on_ghost_interfaces(dof_handler); }); } if (dim > 2) { - ++i; - tasks += Threads::new_task([&, i]() { + tasks += Threads::new_task([&]() { merge_invalid_quad_dofs_on_ghost_interfaces(dof_handler); }); } -- 2.39.5