From patchwork Wed Oct 3 23:28:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,5/6] m68k: Fix unused variable in board.c Date: Wed, 03 Oct 2012 13:28:46 -0000 From: Marek Vasut X-Patchwork-Id: 188961 Message-Id: <1349306927-13378-6-git-send-email-marex@denx.de> To: u-boot@lists.denx.de Cc: Marek Vasut , Jin Zhengxiong-R64188 , Jason Jin The following warning was produced, fix it: board.c: In function 'board_init_r': board.c:390:8: warning: unused variable 's' [-Wunused-variable] Signed-off-by: Marek Vasut Cc: "Jin Zhengxiong-R64188" Cc: Jason Jin --- arch/m68k/lib/board.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/m68k/lib/board.c b/arch/m68k/lib/board.c index 67c9a13..92f935b 100644 --- a/arch/m68k/lib/board.c +++ b/arch/m68k/lib/board.c @@ -29,6 +29,7 @@ #include #include #include +#include #include @@ -387,7 +388,7 @@ board_init_f (ulong bootflag) */ void board_init_r (gd_t *id, ulong dest_addr) { - char *s; + char *s __maybe_unused; bd_t *bd; #ifndef CONFIG_ENV_IS_NOWHERE