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:
guoshichao
2024-09-10 19:26:05 +08:00
committed by Xiang Xiao
parent 23ddfdfb1d
commit 956830170d
+2 -2
View File
@@ -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
/****************************************************************************