]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix unused lambda capture warning 7147/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 5 Sep 2018 15:04:16 +0000 (11:04 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 5 Sep 2018 15:04:16 +0000 (11:04 -0400)
/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

index 0f60a87f30561806663e5cf8fb77390ca5cf9da3..8b255be4d1e07d34a36bfa4c58125414953025ca 100644 (file)
@@ -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);
                 });
               }

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.