From: Timo Heister Date: Wed, 5 Sep 2018 15:04:16 +0000 (-0400) Subject: fix unused lambda capture warning X-Git-Tag: v9.1.0-rc1~752^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7147%2Fhead;p=dealii.git 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] --- 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); }); }