diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-11-19 14:45:39 -0800 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-11-20 20:43:29 +0100 |
commit | 92a97f459f4bfd784b9accfe042ef8df71e13313 (patch) | |
tree | d20e1442400b875e2d50f92fb8f3765d1e16519c /src/device/oprom | |
parent | 0f1553b89a226d368f2accd443911a443b8d3a75 (diff) |
x86emu: Fix some set-but-not-used warnings.
Change-Id: Ide861733d721a21b77862076bf7ad70c7ee6a472
Original-Reviewed-by: Adam Jackson <ajax@redhat.com>
Original-Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: http://review.coreboot.org/12492
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/device/oprom')
-rw-r--r-- | src/device/oprom/x86emu/debug.c | 6 |
1 files changed, 1 insertions, 5 deletions
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': |