[gdb/build, c++20] Fix deprecated implicit capture in cooked_index::set_contents

Fix deprecated implicit capture of this in cooked_index::set_contents, by
removing the capture default, and explicitly listing all captures.

Tested on x86_64-linux.
This commit is contained in:
Tom de Vries
2025-11-23 09:27:56 +01:00
parent dd40af9ca1
commit 777079c67c

View File

@@ -90,7 +90,7 @@ cooked_index::set_contents ()
{
auto this_shard = shard.get ();
const parent_map_map *parent_maps = m_state->get_parent_map_map ();
finalizers.add_task ([=] ()
finalizers.add_task ([this, this_shard, parent_maps] ()
{
scoped_time_it time_it ("DWARF finalize worker",
m_state->m_per_command_time);