From: Christian Brauner Date: Tue, 5 Feb 2019 22:15:05 +0000 (+0100) Subject: compiler: -Wendif-labels hardening X-Git-Tag: lxc-3.2.0~165^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ccb88781399b3d3d5028ed24594b56f679a7145;p=thirdparty%2Flxc.git compiler: -Wendif-labels hardening Do not warn whenever an #else or an #endif are followed by text. Signed-off-by: Christian Brauner --- diff --git a/configure.ac b/configure.ac index 2fd7e7476..b7fde2415 100644 --- a/configure.ac +++ b/configure.ac @@ -711,6 +711,7 @@ AX_CHECK_COMPILE_FLAG([-Werror=return-type], [CFLAGS="$CFLAGS -Werror=return-typ AX_CHECK_COMPILE_FLAG([-Werror=incompatible-pointer-types], [CFLAGS="$CFLAGS -Werror=incompatible-pointer-types"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wformat=2], [CFLAGS="$CFLAGS -Wformat=2"],,[-Werror]) AX_CHECK_COMPILE_FLAG([-Wshadow], [CFLAGS="$CFLAGS -Wshadow"],,[-Werror]) +AX_CHECK_COMPILE_FLAG([-Wendif-labels], [CFLAGS="$CFLAGS -Wendif-labels"],,[-Werror]) AX_CHECK_LINK_FLAG([-z relro], [LDLAGS="$LDLAGS -z relro"],,[]) AX_CHECK_LINK_FLAG([-z now], [LDLAGS="$LDLAGS -z now"],,[])