diff mbox

[U-Boot,16/56] drivers/video/cfb_console.c:Fix GCC 4.6 build warning

Message ID 1320458160-23136-17-git-send-email-wd@denx.de
State Accepted
Commit a9a62af1f93986174be852ee68d2b524278563cf
Headers show

Commit Message

Wolfgang Denk Nov. 5, 2011, 1:55 a.m. UTC
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 <wd@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
---
 drivers/video/cfb_console.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Comments

Anatolij Gustschin Nov. 6, 2011, 7:31 p.m. UTC | #1
Acked-by: Anatolij Gustschin <agust@denx.de>
Wolfgang Denk Nov. 7, 2011, 9:11 p.m. UTC | #2
Dear Wolfgang Denk,

In message <1320458160-23136-17-git-send-email-wd@denx.de> you wrote:
> 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 <wd@denx.de>
> Cc: Anatolij Gustschin <agust@denx.de>
> ---
>  drivers/video/cfb_console.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/drivers/video/cfb_console.c b/drivers/video/cfb_console.c
index 1863563..561883a 100644
--- a/drivers/video/cfb_console.c
+++ b/drivers/video/cfb_console.c
@@ -101,6 +101,7 @@ 
 #include <common.h>
 #include <version.h>
 #include <malloc.h>
+#include <linux/compiler.h>
 
 /*
  * 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;