mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
greenhills: fix the data type align build error
"/home/guoshichao/work_profile/vela_os/vela_car_5/nuttx/include/nuttx/crypto/blake2s.h", line 91: error #2118-D:
this attribute reduces the alignment of the typedef, and while that
will be respected for struct/field layout, the compiler will not
generate code to handle misaligned accesses for objects of this type
typedef uint32_t uint32_alias_t __attribute__((may_alias)) aligned_data(1);
^
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
This commit is contained in:
@@ -88,8 +88,8 @@ typedef struct blake2s_param__
|
||||
|
||||
#ifdef __GNUC__ > 3
|
||||
#define BLAKE2_UNALIGNED 1
|
||||
typedef uint32_t uint32_alias_t __attribute__((may_alias)) aligned_data(1);
|
||||
typedef uint16_t uint16_alias_t __attribute__((may_alias)) aligned_data(1);
|
||||
typedef uint32_t uint32_alias_t __attribute__((may_alias));
|
||||
typedef uint16_t uint16_alias_t __attribute__((may_alias));
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user