diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-15 22:50:22 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-12-19 05:51:11 -0500 |
commit | 67df132b65a3930bf15ebc7013d2aac151c65e32 (patch) | |
tree | 6d77589c38f4445f75fb0632697711e6f71d6f54 /sim/sh | |
parent | 5daeb7f67a02050d94a836778538e823059d4443 (diff) | |
download | gdb-67df132b65a3930bf15ebc7013d2aac151c65e32.zip gdb-67df132b65a3930bf15ebc7013d2aac151c65e32.tar.gz gdb-67df132b65a3930bf15ebc7013d2aac151c65e32.tar.bz2 |
sim: sh: fix -Wunused-variable warnings
Diffstat (limited to 'sim/sh')
-rw-r--r-- | sim/sh/interp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 1982b7f..01d7a1c 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -822,7 +822,7 @@ static int strswaplen (int str) { unsigned char *memory = saved_state.asregs.memory; - int start, end; + int end; int endian = endianb; if (! endian) @@ -1499,8 +1499,6 @@ get_loop_bounds (int rs, int re, unsigned char *memory, unsigned char *mem_end, static void * mcalloc (size_t nmemb, size_t size) { - void *page; - if (nmemb != 1) size *= nmemb; return mmap (0, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, |