From: Tobias Brunner Date: Fri, 8 Dec 2017 08:59:13 +0000 (+0100) Subject: travis: Disable warning that causes a false positive in Xcode 8.3+ X-Git-Tag: 5.6.2dr4~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd9edf7f31308e3b99614bcdb5c70c1b65a2667d;p=thirdparty%2Fstrongswan.git travis: Disable warning that causes a false positive in Xcode 8.3+ Xcode 8.3, to which there recently was a switch, spits out a warning for the potentially unaligned access to ip6_plen in ip-packet.c, which we explicitly read via untoh16() hence the access to that pointer is not actually unaligned. It seems the compiler is not able to determine that there is no unaligned access even though the function is defined in the header and marked inline. --- diff --git a/scripts/test.sh b/scripts/test.sh index f89b28f8cd..d8a4ec5299 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -96,6 +96,8 @@ win*) esac ;; osx) + # this causes a false positive in ip-packet.c since Xcode 8.3 + CFLAGS="$CFLAGS -Wno-address-of-packed-member" # use the same options as in the Homebrew Formula CONFIG="--disable-defaults --enable-charon --enable-cmd --enable-constraints --enable-curl --enable-eap-gtc --enable-eap-identity