sim: sh: fix -Wunused-variable warnings

This commit is contained in:
Mike Frysinger 2023-12-15 22:50:22 -05:00
parent 5daeb7f67a
commit 67df132b65

View File

@ -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,