From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2205) id 75E79384AB58; Fri, 3 May 2024 13:17:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75E79384AB58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1714742239; bh=/+Jkm/rf2SSi7T2ExtZINl/hYXhuXflqFKFO0vLVezA=; h=From:To:Subject:Date:From; b=gXEHQAEDGxe3q4f/xLw/4AucZuOpWN97JoqowMCuV+63IZ01LrOvIGhnDuotepSMJ A2vkYEKG3CFq0uTKfNFSbYP7QF3gfYd9911HNpxl7xcRSBXfqNa/IcnDDGgJ/ff8BC zxlM8ZrGMGOPGERX86VGNxR4z48ULYeENVKumgMc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom de Vries To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [gdb/build] Fix gdbserver/linux-aarch64-low.cc build X-Act-Checkin: binutils-gdb X-Git-Author: Mark Wielaard X-Git-Refname: refs/heads/master X-Git-Oldrev: 9dd1e642084cae1caed0a4a3af7bf93804d89530 X-Git-Newrev: 67fe874896e575f8f9fd510e73d080cd3281814c Message-Id: <20240503131719.75E79384AB58@sourceware.org> Date: Fri, 3 May 2024 13:17:19 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D67fe874896e5= 75f8f9fd510e73d080cd3281814c commit 67fe874896e575f8f9fd510e73d080cd3281814c Author: Mark Wielaard Date: Fri May 3 15:17:42 2024 +0200 [gdb/build] Fix gdbserver/linux-aarch64-low.cc build =20 Commit 0ee25f97d21e ("Fix regression on aarch64-linux gdbserver") removed the last use of i in gdbserver/linux-aarch64-low.cc (aarch64_target::low_stopped_data_address). Breaking the build on aarch64 with: =20 gdbserver/linux-aarch64-low.cc: In member function ?virtual CORE_ADDR a= arch64_target::low_stopped_data_address()?: gdbserver/linux-aarch64-low.cc:557:12: error: unused variable ?i? [-Wer= ror=3Dunused-variable] 557 | int pid, i; | ^ cc1plus: all warnings being treated as errors =20 Fix this by removing the variable i completely. =20 Fixes: 0ee25f97d21e ("Fix regression on aarch64-linux gdbserver") Diff: --- gdbserver/linux-aarch64-low.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdbserver/linux-aarch64-low.cc b/gdbserver/linux-aarch64-low.cc index da5c1fd0629..eb30c31f8f8 100644 --- a/gdbserver/linux-aarch64-low.cc +++ b/gdbserver/linux-aarch64-low.cc @@ -554,7 +554,7 @@ CORE_ADDR aarch64_target::low_stopped_data_address () { siginfo_t siginfo; - int pid, i; + int pid; struct aarch64_debug_reg_state *state; =20 pid =3D lwpid_of (current_thread);