public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: sh: fix -Wunused-variable warnings
@ 2023-12-19 10:53 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2023-12-19 10:53 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=67df132b65a3930bf15ebc7013d2aac151c65e32
commit 67df132b65a3930bf15ebc7013d2aac151c65e32
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Dec 15 22:50:22 2023 -0500
sim: sh: fix -Wunused-variable warnings
Diff:
---
sim/sh/interp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index 1982b7f17a7..01d7a1c7be9 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,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-19 10:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 10:53 [binutils-gdb] sim: sh: fix -Wunused-variable warnings Michael Frysinger
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).