From 1345e77eca366bdd8501ee4368fcc0e8c6316042 Mon Sep 17 00:00:00 2001 From: robertkaiser Date: Mon, 17 Mar 2003 22:23:54 +0000 Subject: [PATCH] Fixed some compiler warnings --- board/shannon/video.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/shannon/video.c b/board/shannon/video.c index a96e6a4..7c1df38 100644 --- a/board/shannon/video.c +++ b/board/shannon/video.c @@ -127,7 +127,6 @@ static int lcd_power(int arg) static void lcd_backlight_init(void) { unsigned long mask; - int retval = 0; /* * Setup the PPC unit correctly. @@ -206,8 +205,8 @@ static void video_init_crit(void) /* set DMA base address registers */ LCCR0 = 0x0001003c; - DBAR1 = LCD_LUT_ADDR; - DBAR2 = LCD_VIDEO_ADDR+LCD_VIDEO_COLS*LCD_VIDEO_ROWS/2; + DBAR1 = (Address)LCD_LUT_ADDR; + DBAR2 = (Address)(LCD_VIDEO_ADDR+LCD_VIDEO_COLS*LCD_VIDEO_ROWS/2); LCCR0 = 0x0001003d; lcd_backlight_init(); -- 2.51.0