summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2011-11-23 06:31:04 +0000
committerWolfgang Denk <wd@denx.de>2011-11-27 15:45:47 +0100
commitd90a5b1ed1bac1e3808d3a737a3ef6496061bae0 (patch)
tree585acf8f1313d786adaf95339020679ec3f0de22
parentca8a30ec6af939c59f9ed53c81629c4adf8e3d50 (diff)
downloadu-boot-d90a5b1ed1bac1e3808d3a737a3ef6496061bae0.tar.gz
u-boot-d90a5b1ed1bac1e3808d3a737a3ef6496061bae0.tar.bz2
u-boot-d90a5b1ed1bac1e3808d3a737a3ef6496061bae0.zip
drivers/bios_emulator/x86emu/ops2.c: Fix GCC 4.6 build warning
Fix: x86emu/ops2.c: In function 'x86emuOp2_set_byte': x86emu/ops2.c:171:11: warning: variable 'name' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r--drivers/bios_emulator/x86emu/ops2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/bios_emulator/x86emu/ops2.c b/drivers/bios_emulator/x86emu/ops2.c
index 937bf4ce07..59dbb422dd 100644
--- a/drivers/bios_emulator/x86emu/ops2.c
+++ b/drivers/bios_emulator/x86emu/ops2.c
@@ -42,6 +42,7 @@
****************************************************************************/
#include <common.h>
+#include <linux/compiler.h>
#include "x86emu/x86emui.h"
/*----------------------------- Implementation ----------------------------*/
@@ -168,7 +169,7 @@ void x86emuOp2_set_byte(u8 op2)
int mod, rl, rh;
uint destoffset;
u8 *destreg;
- char *name = 0;
+ __maybe_unused char *name = 0;
int cond = 0;
START_OF_INSTR();