From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2111) id ED43D3855155; Mon, 28 Nov 2022 19:44:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED43D3855155 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669664695; bh=Js61tDNpdoC12zxhtjwtbzYiBnqoGCeWo6FZdBJ1fLo=; h=From:To:Subject:Date:From; b=VZ7bJkd30g9osHSphxtwdOKSlq8IBR2dFjbp4amL4FKua+qP5UKSkoqFOpQN6Bb5h iAGftzy6FOWJ5Bx0FA9BdjZHYx8fQVLRkk89Ba36la1RC5cib+6D57sKDnBQ6IAztj nNl4h8jQWn2Gg8LnFe2Io6wv3mWxD7DF1Rm2LSM4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Hannes Domani To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Don't use auto for lambda parameter X-Act-Checkin: binutils-gdb X-Git-Author: Hannes Domani X-Git-Refname: refs/heads/master X-Git-Oldrev: 1d39fec4aeacc53f6eb696eaa846f8f07948fcf5 X-Git-Newrev: 23d04cffa847ab39e259ad262526f66d4fad1874 Message-Id: <20221128194455.ED43D3855155@sourceware.org> Date: Mon, 28 Nov 2022 19:44:55 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D23d04cffa847= ab39e259ad262526f66d4fad1874 commit 23d04cffa847ab39e259ad262526f66d4fad1874 Author: Hannes Domani Date: Mon Nov 28 19:32:43 2022 +0100 Don't use auto for lambda parameter =20 Older gcc versions (here 4.9.2) can't handle auto for a lambda paramete= r: =20 ../../gdb/windows-nat.c: In member function 'void windows_nat_target::d= elete_thread(ptid_t, DWORD, bool)': ../../gdb/windows-nat.c:629:12: error: use of 'auto' in lambda paramete= r declaration only available with -std=3Dc++1y or -std=3Dgnu++1y [-Werror] [=3D] (auto &th) ^ Diff: --- gdb/windows-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index f61f6c1cb35..6da6757acaf 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -631,7 +631,7 @@ windows_nat_target::delete_thread (ptid_t ptid, DWORD e= xit_code, =20 auto iter =3D std::find_if (windows_process.thread_list.begin (), windows_process.thread_list.end (), - [=3D] (auto &th) + [=3D] (std::unique_ptr &th) { return th->tid =3D=3D id; });