Skip to contentSkip to conversation

lcd: Fix compilation warning in common/lcd.c

PATCH New Anatolij Gustschin 1 participant 1 message Feb 25, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lcd: Fix compilation warning in common/lcd.c

Fix following warning while compilation for mcc200 board:

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

---
 common/lcd.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
common/lcd.c +4 -1
index d238fdd..4155170 100644
@@ -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;
Signature · 1 line
1.5.3.3