From 92a97f459f4bfd784b9accfe042ef8df71e13313 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 19 Nov 2015 14:45:39 -0800 Subject: x86emu: Fix some set-but-not-used warnings. Change-Id: Ide861733d721a21b77862076bf7ad70c7ee6a472 Original-Reviewed-by: Adam Jackson Original-Signed-off-by: Eric Anholt Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/12492 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Paul Menzel --- src/device/oprom/x86emu/debug.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/device/oprom/x86emu') diff --git a/src/device/oprom/x86emu/debug.c b/src/device/oprom/x86emu/debug.c index e7a111b4f2..bc249a996c 100644 --- a/src/device/oprom/x86emu/debug.c +++ b/src/device/oprom/x86emu/debug.c @@ -211,9 +211,7 @@ void X86EMU_dump_memory (u16 seg, u16 off, u32 amt) u32 start = off & 0xfffffff0; u32 end = (off+16) & 0xfffffff0; u32 i; - u32 current; - current = start; while (end <= off + amt) { printf("%04x:%04x ", seg, start); for (i=start; i< off; i++) @@ -239,8 +237,6 @@ void x86emu_single_step (void) static int breakpoint; static int noDecode = 1; - char *p; - if (DEBUG_BREAK()) { if (M.x86.saved_ip != breakpoint) { return; @@ -256,7 +252,7 @@ void x86emu_single_step (void) offset = M.x86.saved_ip; while (!done) { printf("-"); - p = fgets(s, 1023, stdin); + (void)fgets(s, 1023, stdin); cmd = parse_line(s, ps, &ntok); switch(cmd) { case 'u': -- cgit v1.2.3