]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
build: Disable new gcc 8 warning -Wcast-function-type
authorSimon McVittie <smcv@collabora.com>
Mon, 23 Jul 2018 17:25:18 +0000 (18:25 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 2 Aug 2018 16:13:23 +0000 (17:13 +0100)
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>
configure.ac

index 3d4de79bf878db862894bf695141dec7c9bd7ba8..ce07d4e58a9254b86e63151ee8216a22fca0fdca 100644 (file)
@@ -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 \