public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Michael Frysinger <vapier@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] sim: d10v: fix -Wunused-but-set-variable warnings
Date: Fri,  8 Dec 2023 05:31:30 +0000 (GMT)	[thread overview]
Message-ID: <20231208053130.1374E3858CDB@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a886474a62e836a0997f9aba59b957e2adc8926e

commit a886474a62e836a0997f9aba59b957e2adc8926e
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Dec 6 20:07:06 2023 -0700

    sim: d10v: fix -Wunused-but-set-variable warnings

Diff:
---
 sim/d10v/interp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c
index 46d7bf274cc..d6a94618524 100644
--- a/sim/d10v/interp.c
+++ b/sim/d10v/interp.c
@@ -88,13 +88,13 @@ lookup_hash (SIM_DESC sd, SIM_CPU *cpu, uint32_t ins, int size)
 INLINE static void
 get_operands (struct simops *s, uint32_t ins)
 {
-  int i, shift, bits, flags;
+  int i, shift, bits;
   uint32_t mask;
   for (i=0; i < s->numops; i++)
     {
       shift = s->operands[3*i];
       bits = s->operands[3*i+1];
-      flags = s->operands[3*i+2];
+      /* flags = s->operands[3*i+2]; */
       mask = 0x7FFFFFFF >> (31 - bits);
       OP[i] = (ins >> shift) & mask;
     }

                 reply	other threads:[~2023-12-08  5:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231208053130.1374E3858CDB@sourceware.org \
    --to=vapier@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).