diff options
author | Simon McVittie <smcv@collabora.com> | 2018-07-23 18:20:54 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-08-02 17:12:26 +0100 |
commit | ab8ef4ae31bd5aa28dd228ceb8794877ccf9fd32 (patch) | |
tree | 35289a1ee87aed02e9652b56951c7774db4a9fc9 | |
parent | 7469b878d5c9542929783b9acc037796b29ee6e2 (diff) | |
download | dbus-ab8ef4ae31bd5aa28dd228ceb8794877ccf9fd32.tar.gz |
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: https://bugs.freedesktop.org/show_bug.cgi?id=107349
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Thiago Macieira <thiago@kde.org>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 151cf204..5544ccef 100644 --- a/configure.ac +++ b/configure.ac @@ -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 DISABLE_WARNINGS="$DISABLE_WARNINGS -Wno-deprecated-declarations -Wno-missing-field-initializers - -Wno-unused-parameter" + -Wno-unused-parameter + -Wno-cast-function-type" if test x$enable_asserts = xno; then AC_DEFINE(DBUS_DISABLE_ASSERT,1,[Disable assertion checking]) |