From 509a2e899a73a40fab42021ca51f1b9424c61586 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 Feb 2011 13:29:28 +0100 Subject: [PATCH] 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(). --- configure.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.in b/configure.in index e6b0fef..50a0a14 100644 --- a/configure.in +++ b/configure.in @@ -1176,6 +1176,11 @@ if test "x$GCC" = "xyes"; then esac case " $CFLAGS " in + *[\ \ ]-Wno-address[\ \ ]*) ;; + *) CFLAGS="$CFLAGS -Wno-address" ;; + esac + + case " $CFLAGS " in *[\ \ ]-Wfloat-equal[\ \ ]*) ;; *) if cc_supports_flag -Wfloat-equal; then CFLAGS="$CFLAGS -Wfloat-equal" -- 2.7.4