Skip to content
Snippets Groups Projects
Commit 7ea50d52 authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

compiler_gcc: do not redefine __gnu_attributes


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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent dc19ec11
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment