diff options
author | Eric Anholt <eric@anholt.net> | 2014-05-05 11:10:06 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-09-23 15:01:25 -0400 |
commit | e6f8a0340b72113474ccfbf1ea447558b705995a (patch) | |
tree | 8f7fa95e69ca84cf41f1c64359d15f739683ae58 /hw/xfree86/x86emu | |
parent | fca98ce5e7d6424265c35a1219c2240d3342f627 (diff) |
x86emu: Fix some set-but-not-used warnings.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'hw/xfree86/x86emu')
-rw-r--r-- | hw/xfree86/x86emu/debug.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/xfree86/x86emu/debug.c b/hw/xfree86/x86emu/debug.c index cbea9947f..72a06ffb8 100644 --- a/hw/xfree86/x86emu/debug.c +++ b/hw/xfree86/x86emu/debug.c @@ -233,9 +233,7 @@ 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) { printk("%04x:%04x ", seg, start); for (i = start; i < off; i++) @@ -261,8 +259,6 @@ x86emu_single_step(void) static int breakpoint; static int noDecode = 1; - char *p; - if (DEBUG_BREAK()) { if (M.x86.saved_ip != breakpoint) { return; @@ -279,7 +275,7 @@ x86emu_single_step(void) offset = M.x86.saved_ip; while (!done) { printk("-"); - p = fgets(s, 1023, stdin); + (void)fgets(s, 1023, stdin); cmd = parse_line(s, ps, &ntok); switch (cmd) { case 'u': |