From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:32 +0000 (+0000) Subject: mpc8xx/cpu.c: Fix GCC 4.6 build warnings X-Git-Tag: v2011.12-rc1~281 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bae65019d754007054d702b9e86429fa19470b1e;p=u-boot mpc8xx/cpu.c: Fix GCC 4.6 build warnings Fix: cpu.c: In function 'check_CPU': cpu.c:188:8: warning: variable 'mid' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk --- diff --git a/arch/powerpc/cpu/mpc8xx/cpu.c b/arch/powerpc/cpu/mpc8xx/cpu.c index 142cfa5b98..5cbf9a688e 100644 --- a/arch/powerpc/cpu/mpc8xx/cpu.c +++ b/arch/powerpc/cpu/mpc8xx/cpu.c @@ -40,6 +40,7 @@ #include #include #include +#include #if defined(CONFIG_OF_LIBFDT) #include @@ -185,7 +186,7 @@ static int check_CPU (long clock, uint pvr, uint immr) uint k, m; char buf[32]; char pre = 'X'; - char *mid = "xx"; + __maybe_unused char *mid = "xx"; char *suf; /* the highest 16 bits should be 0x0050 for a 8xx */