From: Amos Jeffries Date: Sat, 3 Jan 2015 15:37:56 +0000 (-0800) Subject: Clang on CentOS needs -Wno-deprecated-register X-Git-Tag: merge-candidate-3-v1~381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=05c9db69bbe926e777ee722d21bbb73f7800b7b0;p=thirdparty%2Fsquid.git Clang on CentOS needs -Wno-deprecated-register --- diff --git a/configure.ac b/configure.ac index 3f831ca222..ccf625ae04 100644 --- a/configure.ac +++ b/configure.ac @@ -364,6 +364,9 @@ else SQUID_CXXFLAGS= fi +dnl CentOS (and RHEL) still define ntohs() using deprecated C++ features +SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_Wno_deprecated_register],[-Wno-deprecated-register],[[#include ]],[[int fox=ntohs(1);]]) + if test "x$enable_strict_error_checking" != "xno"; then SQUID_CFLAGS="$SQUID_CFLAGS $squid_cv_cc_option_werror" SQUID_CXXFLAGS="$SQUID_CXXFLAGS $squid_cv_cxx_option_werror"