From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 6ECCC3864C69; Tue, 19 Dec 2023 10:52:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6ECCC3864C69 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702983161; bh=ktBUJIZQy+tWQHRGsG72o3TRQr+TnABAb2ollq0qZno=; h=From:To:Subject:Date:From; b=fkmJ/aZQMTlY1qJTe6YjBazPyEoYWAMp/MB1ynf58hCTxDorb6O+mrZ9G/FPXT1Cp asxfR5USIXVfH4zX14gRndY4DLQnrfEYKqDE0Zt8F3scqFuIZ+y9zJlZ9VpOFMip8j EePhj7Gaf0qFnMFE9X28GvhyFgas96Upr/jHj+cA= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: gdb-cvs@sourceware.org Subject: [binutils-gdb] sim: cris: fix -Wunused-variable warnings X-Act-Checkin: binutils-gdb X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: 303dc26d24b0c9e61d3193678b12336e68dbf3eb X-Git-Newrev: 1857c9f587a93d715de815af4a76bb6f6b17810a Message-Id: <20231219105241.6ECCC3864C69@sourceware.org> Date: Tue, 19 Dec 2023 10:52:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D1857c9f587a9= 3d715de815af4a76bb6f6b17810a commit 1857c9f587a93d715de815af4a76bb6f6b17810a Author: Mike Frysinger Date: Fri Dec 15 22:09:52 2023 -0500 sim: cris: fix -Wunused-variable warnings Diff: --- sim/cris/crisv10f.c | 1 - sim/cris/dv-rv.c | 3 --- sim/cris/sim-if.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/sim/cris/crisv10f.c b/sim/cris/crisv10f.c index ed4f26cdb90..7c461756d56 100644 --- a/sim/cris/crisv10f.c +++ b/sim/cris/crisv10f.c @@ -58,7 +58,6 @@ MY (deliver_interrupt) (SIM_CPU *current_cpu, unsigned int vec) { unsigned char entryaddr_le[4]; - int was_user; SIM_DESC sd =3D CPU_STATE (current_cpu); uint32_t entryaddr; =20 diff --git a/sim/cris/dv-rv.c b/sim/cris/dv-rv.c index 9142b88f7d7..6927012a529 100644 --- a/sim/cris/dv-rv.c +++ b/sim/cris/dv-rv.c @@ -443,11 +443,9 @@ hw_rv_send (struct hw *me, void *msg, unsigned int len_noheader) { - hw_rv_device *rv =3D (hw_rv_device *) hw_data (me); uint8_t buf[32+3]; uint8_t *bufp; unsigned int len =3D len_noheader + 3; - int ret; =20 buf[0] =3D len & 255; buf[1] =3D (len >> 8) & 255; @@ -1048,7 +1046,6 @@ static void hw_rv_finish (struct hw *me) { hw_rv_device *rv =3D HW_ZALLOC (me, hw_rv_device); - int i; const struct hw_property *mem_prop; const struct hw_property *dummy_prop; const struct hw_property *mbox_prop; diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c index 12baafbf323..06803687ec7 100644 --- a/sim/cris/sim-if.c +++ b/sim/cris/sim-if.c @@ -338,7 +338,6 @@ static void cris_offset_sections (SIM_DESC sd, int offset) { struct bfd *abfd =3D STATE_PROG_BFD (sd); - asection *text; struct offsetinfo oi; =20 /* Only happens for usage error. */ @@ -499,7 +498,6 @@ static bfd_boolean cris_handle_interpreter (SIM_DESC sd, struct bfd *abfd) { int i, n_hdrs; - bfd_byte buf[4]; char *interp =3D NULL; struct bfd *ibfd; bfd_boolean ok =3D FALSE;