From: Michal Simek Date: Fri, 29 Jun 2012 08:29:46 +0000 (+0200) Subject: microblaze: board: Remove compilation warning X-Git-Tag: v2012.10-rc1~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e35c05baa17fc049f32c675b6ee0aaa109980dcb;p=oweals%2Fu-boot.git microblaze: board: Remove compilation warning Variable is used when CONFIG_SYS_FLASH_CHECKSUM is used. Warning log: board.c: In function 'board_init': board.c:101: warning: unused variable 's' Signed-off-by: Michal Simek Acked-by: Stephan Linz --- diff --git a/arch/microblaze/lib/board.c b/arch/microblaze/lib/board.c index 942e18c2c7..b5f21d8a39 100644 --- a/arch/microblaze/lib/board.c +++ b/arch/microblaze/lib/board.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -91,7 +92,7 @@ void board_init (void) gd = (gd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET); bd = (bd_t *) (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \ - GENERATED_BD_INFO_SIZE); - char *s; + __maybe_unused char *s; #if defined(CONFIG_CMD_FLASH) ulong flash_size = 0; #endif