]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
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 e6b0fefa505200f296f54cf376dde0826b975e31..50a0a142af7c095e1eda189ddf0a62391b9822df 100644 (file)
@@ -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