]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/bios_emulator/x86emu/ops2.c: Fix GCC 4.6 build warning
authorKumar Gala <galak@kernel.crashing.org>
Wed, 23 Nov 2011 06:31:04 +0000 (06:31 +0000)
committerWolfgang Denk <wd@denx.de>
Sun, 27 Nov 2011 14:45:47 +0000 (15:45 +0100)
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>
drivers/bios_emulator/x86emu/ops2.c

index 937bf4ce0732b8f683db0bce5b078081e6aef71d..59dbb422dd40d28595e0f77eef264e3a742f9b40 100644 (file)
@@ -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();