mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 07:38:20 +02:00
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().
This commit is contained in:
parent
51e0e91115
commit
509a2e899a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue