From: Darren Tucker Date: Mon, 18 Nov 2019 03:14:18 +0000 (+1100) Subject: Enable -Wimplicit-fallthrough if supported X-Git-Tag: V_8_2_P1~281 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cf1c40096a79e5eedcf897c7cdb46bb32d4a3ee;p=thirdparty%2Fopenssh-portable.git Enable -Wimplicit-fallthrough if supported Suggested by djm. --- diff --git a/configure.ac b/configure.ac index cc944174b..1749b2903 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,7 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then OSSH_CHECK_CFLAG_COMPILE([-Wsizeof-pointer-memaccess]) OSSH_CHECK_CFLAG_COMPILE([-Wpointer-sign], [-Wno-pointer-sign]) OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result]) + OSSH_CHECK_CFLAG_COMPILE([-Wimplicit-fallthrough]) OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing]) if test "x$use_toolchain_hardening" = "x1"; then OSSH_CHECK_CFLAG_COMPILE([-mretpoline]) # clang