From 05c9db69bbe926e777ee722d21bbb73f7800b7b0 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 3 Jan 2015 07:37:56 -0800 Subject: [PATCH] Clang on CentOS needs -Wno-deprecated-register --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) 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" -- 2.47.3