From: gkinkie@gmail.com Date: Sat, 4 Mar 2023 16:08:26 +0000 (+0000) Subject: Fix build with clang v15.0.6 [-Warray-parameter] (#1297) X-Git-Tag: SQUID_7_0_1~467 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=015810d73c4ebb8163541eca384e96d5dea7795c;p=thirdparty%2Fsquid.git Fix build with clang v15.0.6 [-Warray-parameter] (#1297) Adapt a mismatching function signature in stub_libip.cc to the corresponding declaration. --- diff --git a/src/tests/stub_libip.cc b/src/tests/stub_libip.cc index e95d392f93..0616767dda 100644 --- a/src/tests/stub_libip.cc +++ b/src/tests/stub_libip.cc @@ -57,7 +57,7 @@ char* Ip::Address::toStr(char *, const unsigned int, int) const STUB_RETVAL(null char* Ip::Address::toUrl(char *, unsigned int) const STUB_RETVAL(nullptr) unsigned int Ip::Address::toHostStr(char *, const unsigned int) const STUB_RETVAL(0) bool Ip::Address::fromHost(const char *) STUB_RETVAL(false) -bool Ip::Address::getReverseString(char [], int) const STUB_RETVAL(false) +bool Ip::Address::getReverseString(char [MAX_IPSTRLEN], int) const STUB_RETVAL(false) int Ip::Address::matchIPAddr(const Ip::Address &) const STUB_RETVAL(0) int Ip::Address::compareWhole(const Ip::Address &) const STUB_RETVAL(0) void Ip::Address::getAddrInfo(struct addrinfo *&, int) const STUB