From: Christian Brauner Date: Tue, 5 Feb 2019 19:54:33 +0000 (+0100) Subject: compiler: set -Wimplicit-fallthrough to 5 X-Git-Tag: lxc-3.2.0~166^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55733496733d30f53bd5b37c8e27ab1028111518;p=thirdparty%2Flxc.git compiler: set -Wimplicit-fallthrough to 5 -Wimplicit-fallthrough=5 doesn’t recognize any comments as fallthrough comments, only attributes disable the warning. Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index 052be683c..2fd7e7476 100644 --- a/configure.ac +++ b/configure.ac @@ -692,7 +692,7 @@ LXC_CHECK_TLS # Hardening flags AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -fdiagnostics-color"],,[-Werror]) -AX_CHECK_COMPILE_FLAG([-Wimplicit-fallthrough], [CFLAGS="$CFLAGS -Wimplicit-fallthrough"],,[-Werror]) +AX_CHECK_COMPILE_FLAG([-Wimplicit-fallthrough=5], [CFLAGS="$CFLAGS -Wimplicit-fallthrough=5"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wcast-align], [CFLAGS="$CFLAGS -Wcast-align"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes], [CFLAGS="$CFLAGS -Wstrict-prototypes"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-fno-strict-aliasing], [CFLAGS="$CFLAGS -fno-strict-aliasing"],,[-Werror])