]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix autoconf test for -Wno-deprecated-register
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 5 Jan 2015 17:44:21 +0000 (18:44 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 5 Jan 2015 17:44:21 +0000 (18:44 +0100)
configure.ac

index 3e021cb4778df7c8a0b7de73ac5ff1cf8d585b5a..491c12bf0269a0b0b4ba0b90ab6f3a3736232d08 100644 (file)
@@ -365,7 +365,7 @@ else
 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);]])
+SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_wno_deprecated_register],[-Werror -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"