From: Lennart Poettering Date: Tue, 15 Feb 2011 12:29:28 +0000 (+0100) Subject: build-sys: ignore -Waddress message so that build works on gcc/rawhide X-Git-Tag: dbus-1.4.4~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509a2e899a73a40fab42021ca51f1b9424c61586;p=thirdparty%2Fdbus.git build-sys: ignore -Waddress message so that build works on gcc/rawhide Newer gccs warn if you compare an address of a variable that is allocated on the stack or is static with NULL. Since we compile dbus with -Werror this causes the build to fail since we do this check all the time due to macros such as _DBUS_ASSERT_ERROR_IS_SET(). --- diff --git a/configure.in b/configure.in index e6b0fefa5..50a0a142a 100644 --- a/configure.in +++ b/configure.in @@ -1175,6 +1175,11 @@ if test "x$GCC" = "xyes"; then *) CFLAGS="$CFLAGS -Wcast-align" ;; esac + case " $CFLAGS " in + *[\ \ ]-Wno-address[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -Wno-address" ;; + esac + case " $CFLAGS " in *[\ \ ]-Wfloat-equal[\ \ ]*) ;; *) if cc_supports_flag -Wfloat-equal; then