[sheepdog] [PATCH v2 1/3] configure: disable -Wcast-align for arm architecture

MORITA Kazutaka morita.kazutaka at gmail.com
Thu Aug 8 10:39:35 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

The -Wcast-align flag causes a lot of compile warnings on ARM, which
are false alarms.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 configure.ac |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 84ce448..7686faf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -323,7 +323,6 @@ WARNLIST="
 	strict-prototypes
 	pointer-arith
 	write-strings
-	cast-align
 	bad-function-cast
 	missing-format-attribute
 	format=2
@@ -335,6 +334,14 @@ WARNLIST="
 	no-strict-aliasing
 	"
 
+case "${host}" in
+	arm*)
+	;;
+	*)
+	WARNLIST="${WARNLIST} cast-align"
+	;;
+esac
+
 for j in $WARNLIST; do
 	if cc_supports_flag -W$j; then
 		EXTRA_WARNINGS="$EXTRA_WARNINGS -W$j";
-- 
1.7.9.5




More information about the sheepdog mailing list