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 |