diff options
author | Jean Delvare <jdelvare@suse.de> | 2023-04-03 10:15:08 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2023-04-03 10:15:08 +0200 |
commit | a85ed8540993f4cba831e1d1d0224ba6640d9c4b (patch) | |
tree | b5df8990cb548f05a2d0d94fa55ab2051fa4e3aa | |
parent | 484f8935b0fc768841f43fa388b191196b5e12fd (diff) | |
download | dmidecode-git-a85ed8540993f4cba831e1d1d0224ba6640d9c4b.tar.gz |
Use -DALIGNMENT_WORKAROUND on arm as well
The OBS armv7l build log shows a lot of warnings about casts increasing
the required alignment of target type. This suggests that this
architecture needs to use the slower byte access which is enabled by
-DALIGNMENT_WORKAROUND.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r-- | config.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ #endif /* Use memory alignment workaround or not */ -#ifdef __ia64__ +#if defined(__ia64__) || defined(__arm__) #define ALIGNMENT_WORKAROUND #endif |