From 8f6df489079dc9cf6f66b0e69b6994912495b1ba Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Wed, 24 Nov 2021 22:19:11 +0000 Subject: [PATCH] Fix enabling of -Woverloaded-virtual attempted in commit 8b082ed (#936) configure: checking whether compiler accepts -Woverloaded_virtual config.log: g++: error: unrecognized command-line option '-Woverloaded_virtual'; did you mean '-Woverloaded-virtual'? --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 59e0775e9d..a2f279a7f8 100644 --- a/configure.ac +++ b/configure.ac @@ -369,7 +369,7 @@ SQUID_CC_ADD_CXXFLAG_IF_SUPPORTED([-Wwrite-strings]) SQUID_CC_ADD_CXXFLAG_IF_SUPPORTED([-Wcomments]) SQUID_CC_ADD_CXXFLAG_IF_SUPPORTED([-Wshadow]) SQUID_CC_ADD_CXXFLAG_IF_SUPPORTED([-Wmissing-declarations]) -SQUID_CC_ADD_CXXFLAG_IF_SUPPORTED([-Woverloaded_virtual]) +SQUID_CC_ADD_CXXFLAG_IF_SUPPORTED([-Woverloaded-virtual]) dnl CentOS (and RHEL) still define ntohs() using deprecated C++ features SQUID_CC_REQUIRE_ARGUMENT([ac_cv_require_wno_deprecated_register],[-Werror -Wno-deprecated-register],[[#include ]],[[int fox=ntohs(1);]]) -- 2.47.2