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>
This commit is contained in:
Stefan Reinauer 2015-11-19 14:45:39 -08:00
parent 0f1553b89a
commit 92a97f459f
1 changed files with 1 additions and 5 deletions

View File

@ -211,9 +211,7 @@ void X86EMU_dump_memory (u16 seg, u16 off, u32 amt)
u32 start = off & 0xfffffff0; u32 start = off & 0xfffffff0;
u32 end = (off+16) & 0xfffffff0; u32 end = (off+16) & 0xfffffff0;
u32 i; u32 i;
u32 current;
current = start;
while (end <= off + amt) { while (end <= off + amt) {
printf("%04x:%04x ", seg, start); printf("%04x:%04x ", seg, start);
for (i=start; i< off; i++) for (i=start; i< off; i++)
@ -239,8 +237,6 @@ void x86emu_single_step (void)
static int breakpoint; static int breakpoint;
static int noDecode = 1; static int noDecode = 1;
char *p;
if (DEBUG_BREAK()) { if (DEBUG_BREAK()) {
if (M.x86.saved_ip != breakpoint) { if (M.x86.saved_ip != breakpoint) {
return; return;
@ -256,7 +252,7 @@ void x86emu_single_step (void)
offset = M.x86.saved_ip; offset = M.x86.saved_ip;
while (!done) { while (!done) {
printf("-"); printf("-");
p = fgets(s, 1023, stdin); (void)fgets(s, 1023, stdin);
cmd = parse_line(s, ps, &ntok); cmd = parse_line(s, ps, &ntok);
switch(cmd) { switch(cmd) {
case 'u': case 'u':