From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:59 +0000 (+0000) Subject: arch/powerpc/lib/bat_rw.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~254 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8a33201d0c48c7b05a7b2ee978d3a56d1b2d81a7;p=oweals%2Fu-boot.git arch/powerpc/lib/bat_rw.c: Fix GCC 4.6 build warning Fix: bat_rw.c: In function 'write_bat': bat_rw.c:38:6: warning: variable 'batn' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk Cc: Kumar Gala Cc: Andy Fleming --- diff --git a/arch/powerpc/lib/bat_rw.c b/arch/powerpc/lib/bat_rw.c index c48c240151..113c293c03 100644 --- a/arch/powerpc/lib/bat_rw.c +++ b/arch/powerpc/lib/bat_rw.c @@ -26,6 +26,7 @@ #include #include #include +#include #ifdef CONFIG_ADDR_MAP #include @@ -35,7 +36,7 @@ DECLARE_GLOBAL_DATA_PTR; int write_bat (ppc_bat_t bat, unsigned long upper, unsigned long lower) { - int batn = -1; + __maybe_unused int batn = -1; sync();