From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:20 +0000 (+0000) Subject: drivers/video/cfb_console.c:Fix GCC 4.6 build warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a9a62af1f93986174be852ee68d2b524278563cf;p=project%2Fbcm63xx%2Fu-boot.git drivers/video/cfb_console.c:Fix GCC 4.6 build warning Silence this warning: cfb_console.c: In function 'video_logo': cfb_console.c:1563:18: warning: variable 'y_off' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk Cc: Anatolij Gustschin Acked-by: Anatolij Gustschin --- diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c index 1863563ce4..561883a1fc 100644 --- a/drivers/video/cfb_console.c +++ b/drivers/video/cfb_console.c @@ -101,6 +101,7 @@ #include #include #include +#include /* * Console device defines with SMI graphic @@ -1560,7 +1561,8 @@ void logo_plot(void *screen, int width, int x, int y) static void *video_logo(void) { char info[128]; - int space, len, y_off = 0; + int space, len; + __maybe_unused int y_off = 0; #ifdef CONFIG_SPLASH_SCREEN char *s;