From e35c05baa17fc049f32c675b6ee0aaa109980dcb Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Fri, 29 Jun 2012 10:29:46 +0200 Subject: [PATCH] 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 --- arch/microblaze/lib/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1