From: Alex Rousskov Date: Wed, 24 Nov 2021 22:19:11 +0000 (+0000) Subject: Fix enabling of -Woverloaded-virtual attempted in commit 8b082ed (#936) X-Git-Tag: SQUID_6_0_1~266 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f6df489079dc9cf6f66b0e69b6994912495b1ba;p=thirdparty%2Fsquid.git 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'? --- 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);]])