Commit ab8ef4ae authored by Simon McVittie's avatar Simon McVittie

build: Disable new gcc 8 warning -Wcast-function-type

The foreach(list, (DBusForeachFunction) free, NULL) idiom seems too
entrenched to remove it from stable branches.

Bug: Simon McVittie's avatarSimon McVittie <>
Reviewed-by: Thiago Macieira's avatarThiago Macieira <>
parent 7469b878
......@@ -330,10 +330,14 @@ dnl - we are not going to stop using deprecated functions on a stable
dnl branch
dnl - missing field initializers being 0 is a C feature, not a bug
dnl - unused-parameter is to make writing callbacks less annoying
dnl - cast-function-type is for the
dnl foreach(list, (DBusForeachFunction) free, NULL) idiom which would
dnl be too intrusive to replace in a stable branch
if test x$enable_asserts = xno; then
AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment