From: Brian Aker Date: Mon, 29 Apr 2013 14:58:26 +0000 (-0400) Subject: Add updated harden flags X-Git-Tag: 1.0.18~25^2~1 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=87ae8c09e17201215808df298a32c6f18311c7ea;p=m6w6%2Flibmemcached Add updated harden flags --- diff --git a/m4/ax_harden_compiler_flags.m4 b/m4/ax_harden_compiler_flags.m4 index 2783f291..d4fccad6 100644 --- a/m4/ax_harden_compiler_flags.m4 +++ b/m4/ax_harden_compiler_flags.m4 @@ -196,7 +196,7 @@ AC_DEFUN([_HARDEN_CC_COMPILER_FLAGS], _APPEND_COMPILE_FLAGS_ERROR([-fPIE -pie]) _APPEND_COMPILE_FLAGS_ERROR([-Wsizeof-pointer-memaccess]) _APPEND_COMPILE_FLAGS_ERROR([-Wpacked]) - _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long]) +# _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long]) _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code]) AS_IF([test "x$ax_enable_debug" = xno], @@ -281,7 +281,7 @@ AC_DEFUN([_HARDEN_CXX_COMPILER_FLAGS], _APPEND_COMPILE_FLAGS_ERROR([-Wunsafe-loop-optimizations]) _APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations]) _APPEND_COMPILE_FLAGS_ERROR([-Wc++11-compat]) - _APPEND_COMPILE_FLAGS_ERROR([-Weffc++]) +# _APPEND_COMPILE_FLAGS_ERROR([-Weffc++]) AS_IF([test "x$MINGW" != xyes],[ AS_IF([test "x$ac_cv_vcs_checkout" = xyes],[ AS_IF([test "x$enable_shared" = "xyes"],[ @@ -309,7 +309,7 @@ AC_DEFUN([_HARDEN_CXX_COMPILER_FLAGS], ]) ]) ]) - _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast]) +# _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast]) _APPEND_COMPILE_FLAGS_ERROR([-Wclobbered]) _APPEND_COMPILE_FLAGS_ERROR([-Wunused]) _APPEND_COMPILE_FLAGS_ERROR([-Wunused-result]) @@ -325,7 +325,7 @@ AC_DEFUN([_HARDEN_CXX_COMPILER_FLAGS], _APPEND_COMPILE_FLAGS_ERROR([-fPIE -pie]) _APPEND_COMPILE_FLAGS_ERROR([-Wsizeof-pointer-memaccess]) _APPEND_COMPILE_FLAGS_ERROR([-Wpacked]) - _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long]) +# _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long]) _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code]) AS_IF([test "x$ax_enable_debug" = xno],