aboutsummaryrefslogtreecommitdiff
path: root/src/devices/oprom/x86emu/ops2.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2011-10-04 10:34:37 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2011-10-13 20:01:47 +0200
commitd17fe51d9a9402dfdc1b6b633e52a7bf8e757949 (patch)
tree70f4ae3b8e8099cc02be8e243e7ad20ba0ac476a /src/devices/oprom/x86emu/ops2.c
parentb6b8871dd3beaf2e39fdb854903466afe041eabc (diff)
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/ops2.c')
-rw-r--r--src/devices/oprom/x86emu/ops2.c2
1 files changed, 1 insertions, 1 deletions
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();