summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2023-04-03 10:15:08 +0200
committerJean Delvare <jdelvare@suse.de>2023-04-03 10:15:08 +0200
commita85ed8540993f4cba831e1d1d0224ba6640d9c4b (patch)
treeb5df8990cb548f05a2d0d94fa55ab2051fa4e3aa
parent484f8935b0fc768841f43fa388b191196b5e12fd (diff)
downloaddmidecode-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.h b/config.h
index 4237355..0a1af7d 100644
--- a/config.h
+++ b/config.h
@@ -22,7 +22,7 @@
#endif
/* Use memory alignment workaround or not */
-#ifdef __ia64__
+#if defined(__ia64__) || defined(__arm__)
#define ALIGNMENT_WORKAROUND
#endif