[U-Boot] [U-Boot, 1/1] compiler_gcc: do not redefine __gnu_attributes

Tom Rini trini at ti.com
Fri Sep 6 23:24:32 CEST 2013


On Sat, Aug 10, 2013 at 05:16:50PM +0200, Jeroen Hofstee wrote:

> gcc allows extensions to be non compiler specific by defining
> __* macros for the attributes supported by gcc. Having a
> different definition causes many warnings during the build
> (cdefs.h on FreeBSD uses __attribute((__pure__)) where u-boot
> uses __attribute__((pure)) for example). Do not redefine
> these macros to suppress these warnings.
> 
> This patch ignores the checkpatch warning:
> WARNING: __packed is preferred over __attribute__((packed))
> 
> Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130906/bb029396/attachment.pgp>


More information about the U-Boot mailing list