From: Simon McVittie Date: Fri, 24 Mar 2017 19:41:10 +0000 (+0000) Subject: Stop opting out of -Wswitch-enum and -Wswitch-default X-Git-Tag: dbus-1.11.12~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3ac2cece72284472013f645deb511c0c0552f8c;p=thirdparty%2Fdbus.git Stop opting out of -Wswitch-enum and -Wswitch-default Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=98191 --- diff --git a/configure.ac b/configure.ac index 160e45165..97f5ff2b1 100644 --- a/configure.ac +++ b/configure.ac @@ -1364,14 +1364,6 @@ AS_IF([test "x$enable_ansi" = "xyes"],[ AC_DEFINE([_BSD_SOURCE],[1],[Define to enable BSD features]) ]) -dnl TODO: The compiler flags below disable warnings that the -dnl compiler emits while building dbus. Fix the source -dnl code and remove these flags. -DISABLE_WARNINGS="$DISABLE_WARNINGS - -Wno-switch-default - -Wno-switch-enum - " - dnl We are only calling this for its side-effect of setting up dnl --enable-compile-warnings; the WARN_CFLAGS, etc. are ignored, dnl to work around https://github.com/peti/autoconf-archive/pull/96