All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] lcd: Fix compilation warning in common/lcd.c
@ 2009-02-25 19:46 Anatolij Gustschin
  0 siblings, 0 replies; only message in thread
From: Anatolij Gustschin @ 2009-02-25 19:46 UTC (permalink / raw)
  To: u-boot

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 |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/common/lcd.c b/common/lcd.c
index d238fdd..4155170 100644
--- a/common/lcd.c
+++ b/common/lcd.c
@@ -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;
-- 
1.5.3.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-25 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-25 19:46 [U-Boot] [PATCH] lcd: Fix compilation warning in common/lcd.c Anatolij Gustschin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.