build-sys: ignore -Waddress message so that build works on gcc/rawhide
authorLennart Poettering <lennart@poettering.net>
Tue, 15 Feb 2011 12:29:28 +0000 (13:29 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 15 Feb 2011 12:29:31 +0000 (13:29 +0100)
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

index e6b0fef..50a0a14 100644 (file)
@@ -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"