[U-Boot] [PATCH V4 2/3] tools: logo: add static and unused to bmp arrays

Mike Frysinger vapier at gentoo.org
Thu Oct 20 14:42:01 CEST 2011


On Thursday 20 October 2011 01:38:45 Che-Liang Chiou wrote:
> The generated header bmp_logo.h is useful even outside common/lcd.c for
> the logo dimension.  However, the problem is, the generated bmp_logo.h
> cannot be included multiple times because bmp_logo_palette[] and
> bmp_logo_bitmap[] are defined in the bmp_logo.h.
> 
> We may remedy this by adding
>   static __attribute__((unused))
> to the array definitions so that bmp_logo.h can be included multiple
> times, and these arrays is used in only one inclusion (lcd.c).

i'm not sure this is the right way to go.  what if we split bmp_logo.h instead 
into bmp_logo_data.h (which has the array contents) and bmp_log.h (which has 
the defines and externs for the data arrays) ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111020/cbf75b44/attachment.pgp 


More information about the U-Boot mailing list