From 14d80452dc50e873f76d181758b64582353dc6c9 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 29 Jan 2016 20:57:49 +0000 Subject: [PATCH] arm: Disable -Wcast-align warning. Any modern system can handle unaligned memory access. On armv7 it's slightly slower, that's all. --- m4/guestfs_c.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/m4/guestfs_c.m4 b/m4/guestfs_c.m4 index b3177a26a..002c32f95 100644 --- a/m4/guestfs_c.m4 +++ b/m4/guestfs_c.m4 @@ -54,6 +54,7 @@ nw="$nw -Wunsafe-loop-optimizations" # just a warning that an optimization # was not possible, safe to ignore nw="$nw -Wstack-protector" # Useless warning when stack protector # cannot being used in a function. +nw="$nw -Wcast-align" # Useless warning on arm >= 7, intel dnl things I might fix soon: nw="$nw -Wpacked" # Allow attribute((packed)) on structs nw="$nw -Wlong-long" # Allow long long since it's required