]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Clang on CentOS needs -Wno-deprecated-register
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 3 Jan 2015 15:37:56 +0000 (07:37 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 3 Jan 2015 15:37:56 +0000 (07:37 -0800)
configure.ac

index 3f831ca22215e4692617a777b41473448e35ee2c..ccf625ae045419305030d0d6f4ff5cca7a37b7f5 100644 (file)
@@ -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 <arpa/inet.h>]],[[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"