From d17fe51d9a9402dfdc1b6b633e52a7bf8e757949 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 4 Oct 2011 10:34:37 -0700 Subject: 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 Reviewed-on: http://review.coreboot.org/258 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- src/devices/oprom/x86emu/ops2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/devices/oprom/x86emu/ops2.c') diff --git a/src/devices/oprom/x86emu/ops2.c b/src/devices/oprom/x86emu/ops2.c index 349a664f50..f559874c73 100644 --- a/src/devices/oprom/x86emu/ops2.c +++ b/src/devices/oprom/x86emu/ops2.c @@ -336,7 +336,7 @@ static void x86emuOp2_set_byte(u8 op2) int mod, rl, rh; uint destoffset; u8 *destreg; - const char *name = 0; + const char *X86EMU_DEBUG_ONLY(name) = 0; int cond = 0; START_OF_INSTR(); -- cgit v1.2.3