summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-07-23 18:25:18 +0100
committerSimon McVittie <smcv@collabora.com>2018-08-02 17:13:23 +0100
commit4c596ecc5ebcce5170e706164d544700c548667e (patch)
treeb039b7e1d5c66196a8e8a672071994cde8bee9e8
parentf1fe2928a1035f19a06d926ce4c8cd41e2098384 (diff)
downloaddbus-4c596ecc5ebcce5170e706164d544700c548667e.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: Philip Withnall <withnall@endlessm.com>
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3d4de79b..ce07d4e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1396,10 +1396,12 @@ TP_COMPILER_WARNINGS([WARNING_CFLAGS],
dnl gcc can't cope with inconsistent tab/space indentation
dnl
dnl To be fixed one day:
+ dnl - cast-function-type is fd.o #107349
dnl - pointer-sign is a workaround for fd.o #15522
dnl - type-limits is probably a bug too, but having the rest of -Wextra
dnl is better than nothing
[$DISABLE_UNUSED_WARNINGS \
+ cast-function-type \
deprecated-declarations \
missing-field-initializers \
misleading-indentation \