aboutsummaryrefslogtreecommitdiff
path: root/sim/cr16
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-12-15 21:47:20 -0500
committerMike Frysinger <vapier@gentoo.org>2023-12-19 05:51:10 -0500
commit303dc26d24b0c9e61d3193678b12336e68dbf3eb (patch)
tree82b98b4a7bcc4e7986b8edba6dbf0181d58e9928 /sim/cr16
parent4b75ed17979cbfa1d6579cbd40b4562c6d92968a (diff)
downloadgdb-303dc26d24b0c9e61d3193678b12336e68dbf3eb.zip
gdb-303dc26d24b0c9e61d3193678b12336e68dbf3eb.tar.gz
gdb-303dc26d24b0c9e61d3193678b12336e68dbf3eb.tar.bz2
sim: cr16: fix -Wunused-variable warnings
Diffstat (limited to 'sim/cr16')
-rw-r--r--sim/cr16/interp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c
index d45fa63..9a2363a 100644
--- a/sim/cr16/interp.c
+++ b/sim/cr16/interp.c
@@ -67,7 +67,7 @@ struct hash_entry hash_table[MAX_HASH+1];
INLINE static long
hash(unsigned long long insn, int format)
{
- unsigned int i = 4, tmp;
+ unsigned int i = 4;
if (format)
{
while ((insn >> i) != 0) i +=4;
@@ -113,7 +113,7 @@ INLINE static void
get_operands (operand_desc *s, uint64_t ins, int isize, int nops)
{
uint32_t i, opn = 0, start_bit = 0, op_type = 0;
- int32_t op_size = 0, mask = 0;
+ int32_t op_size = 0;
if (isize == 1) /* Trunkcate the extra 16 bits of INS. */
ins = ins >> 16;
@@ -397,7 +397,6 @@ sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *cb,
struct simops *s;
struct hash_entry *h;
static int init_p = 0;
- char **p;
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER);