From 86b6b5fc1f6abbbae3ab89432dda909282c03534 Mon Sep 17 00:00:00 2001 From: "gkinkie@gmail.com" Date: Sat, 4 Mar 2023 16:08:26 +0000 Subject: [PATCH] Fix build with clang v15.0.6 [-Warray-parameter] (#1297) Adapt a mismatching function signature in stub_libip.cc to the corresponding declaration. --- src/tests/stub_libip.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2