]> git.sur5r.net Git - u-boot/commitdiff
lcd: Fix compilation warning in common/lcd.c
authorAnatolij Gustschin <agust@denx.de>
Wed, 25 Feb 2009 19:28:13 +0000 (20:28 +0100)
committerAnatolij Gustschin <agust@denx.de>
Wed, 25 Feb 2009 19:28:13 +0000 (20:28 +0100)
Fix following warning while compilation for mcc200 board:

lcd.c: In function 'lcd_display_bitmap':
lcd.c:625: warning: unused variable 'cmap'

Signed-off-by: Anatolij Gustschin <agust@denx.de>
common/lcd.c

index d238fdde858b5819f814ea7ac9784ffaddd93050..41551707dd97f68307dd1cf093c65faabed8b97c 100644 (file)
@@ -622,7 +622,10 @@ void bitmap_plot (int x, int y)
  */
 int lcd_display_bitmap(ulong bmp_image, int x, int y)
 {
-       ushort *cmap = NULL, *cmap_base = NULL;
+#if !defined(CONFIG_MCC200)
+       ushort *cmap = NULL;
+#endif
+       ushort *cmap_base = NULL;
        ushort i, j;
        uchar *fb;
        bmp_image_t *bmp=(bmp_image_t *)bmp_image;