diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2011-10-04 10:34:37 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-10-13 20:01:47 +0200 |
commit | d17fe51d9a9402dfdc1b6b633e52a7bf8e757949 (patch) | |
tree | 70f4ae3b8e8099cc02be8e243e7ad20ba0ac476a /src/devices/oprom/x86emu/ops.c | |
parent | b6b8871dd3beaf2e39fdb854903466afe041eabc (diff) | |
download | coreboot-d17fe51d9a9402dfdc1b6b633e52a7bf8e757949.tar.xz |
Fix compilation of x86emu with gcc 4.6.x
gcc 4.6 complains about unused but set variables in x86emu.
Particularly some variables are always set but only used in
debug mode, or when FPU support is enabled.
Change-Id: Ic53bd2303171ab717eb2d2c0ed72744d3eb6989e
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/258
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'src/devices/oprom/x86emu/ops.c')
-rw-r--r-- | src/devices/oprom/x86emu/ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/oprom/x86emu/ops.c b/src/devices/oprom/x86emu/ops.c index c66da95760..70e048dc2f 100644 --- a/src/devices/oprom/x86emu/ops.c +++ b/src/devices/oprom/x86emu/ops.c @@ -3562,7 +3562,7 @@ Handles opcode 0xcc ****************************************************************************/ static void x86emuOp_int3(u8 X86EMU_UNUSED(op1)) { - u16 tmp; + u16 X86EMU_UNUSED(tmp); START_OF_INSTR(); DECODE_PRINTF("INT 3\n"); @@ -3590,7 +3590,7 @@ Handles opcode 0xcd ****************************************************************************/ static void x86emuOp_int_IMM(u8 X86EMU_UNUSED(op1)) { - u16 tmp; + u16 X86EMU_UNUSED(tmp); u8 intnum; START_OF_INSTR(); @@ -3620,7 +3620,7 @@ Handles opcode 0xce ****************************************************************************/ static void x86emuOp_into(u8 X86EMU_UNUSED(op1)) { - u16 tmp; + u16 X86EMU_UNUSED(tmp); START_OF_INSTR(); DECODE_PRINTF("INTO\n"); @@ -4034,7 +4034,7 @@ Handles opcode 0xd5 ****************************************************************************/ static void x86emuOp_aad(u8 X86EMU_UNUSED(op1)) { - u8 a; + u8 X86EMU_UNUSED(a); START_OF_INSTR(); DECODE_PRINTF("AAD\n"); |