aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2022-11-28 19:32:43 +0100
committerHannes Domani <ssbssa@yahoo.de>2022-11-28 20:46:01 +0100
commit23d04cffa847ab39e259ad262526f66d4fad1874 (patch)
treecd1d29e2c9cddc8baacad5b4ff52089407f35b1b
parent1d39fec4aeacc53f6eb696eaa846f8f07948fcf5 (diff)
downloadgdb-23d04cffa847ab39e259ad262526f66d4fad1874.zip
gdb-23d04cffa847ab39e259ad262526f66d4fad1874.tar.gz
gdb-23d04cffa847ab39e259ad262526f66d4fad1874.tar.bz2
Don't use auto for lambda parameter
Older gcc versions (here 4.9.2) can't handle auto for a lambda parameter: ../../gdb/windows-nat.c: In member function 'void windows_nat_target::delete_thread(ptid_t, DWORD, bool)': ../../gdb/windows-nat.c:629:12: error: use of 'auto' in lambda parameter declaration only available with -std=c++1y or -std=gnu++1y [-Werror] [=] (auto &th) ^
-rw-r--r--gdb/windows-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index f61f6c1..6da6757 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -631,7 +631,7 @@ windows_nat_target::delete_thread (ptid_t ptid, DWORD exit_code,
auto iter = std::find_if (windows_process.thread_list.begin (),
windows_process.thread_list.end (),
- [=] (auto &th)
+ [=] (std::unique_ptr<windows_thread_info> &th)
{
return th->tid == id;
});