Add __may_alias macro to GCC toolchain
This is needed when one wants to avoid gcc "dereferencing type-punned pointer" warnings. Change-Id: I7bfd68fabb07deb64908cb0eaa833bdc5c8a4e08 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
6d27b0a33c
commit
781b627f8c
1 changed files with 1 additions and 0 deletions
|
@ -109,6 +109,7 @@ __extension__ ({ \
|
|||
|
||||
#define __packed __attribute__((__packed__))
|
||||
#define __aligned(x) __attribute__((aligned(x)))
|
||||
#define __may_alias __attribute__((__may_alias__))
|
||||
|
||||
#define ARG_UNUSED(x) (void)(x)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue