]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
use -Wmisleading-indentation cflag if available
authorDamien Miller <djm@mindrot.org>
Thu, 28 Oct 2021 05:24:53 +0000 (16:24 +1100)
committerDamien Miller <djm@mindrot.org>
Thu, 28 Oct 2021 05:24:53 +0000 (16:24 +1100)
ok dtucker@

configure.ac

index f103b3bfbed9ffefffd183963a8d382e8468ccd3..2a3d35da41aa39a79420f7abf8005015e2c52f9d 100644 (file)
@@ -176,6 +176,7 @@ if test "$GCC" = "yes" || test "$GCC" = "egcs"; then
        OSSH_CHECK_CFLAG_COMPILE([-Wunused-parameter], [-Wno-unused-parameter])
        OSSH_CHECK_CFLAG_COMPILE([-Wunused-result], [-Wno-unused-result])
        OSSH_CHECK_CFLAG_COMPILE([-Wimplicit-fallthrough])
+       OSSH_CHECK_CFLAG_COMPILE([-Wmisleading-indentation])
        OSSH_CHECK_CFLAG_COMPILE([-fno-strict-aliasing])
     if test "x$use_toolchain_hardening" = "x1"; then
        OSSH_CHECK_CFLAG_COMPILE([-mretpoline]) # clang