From: Remi Gacogne Date: Wed, 25 Sep 2024 12:54:59 +0000 (+0200) Subject: dnsdist: Fix a few "unused parameter" warnings X-Git-Tag: dnsdist-2.0.0-alpha1~128^2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=245fee69c71983bd50fa7a6f5c474ddd03a6f0ff;p=thirdparty%2Fpdns.git dnsdist: Fix a few "unused parameter" warnings --- diff --git a/pdns/dnsdistdist/dnsdist-lbpolicies.cc b/pdns/dnsdistdist/dnsdist-lbpolicies.cc index d5659dae5d..b28025d8b8 100644 --- a/pdns/dnsdistdist/dnsdist-lbpolicies.cc +++ b/pdns/dnsdistdist/dnsdist-lbpolicies.cc @@ -55,6 +55,7 @@ template static std::shared_ptr getLeastOutstanding(c // get server with least outstanding queries, and within those, with the lowest order, and within those: the fastest shared_ptr leastOutstanding(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq) { + (void)dq; using LeastOutstandingType = std::tuple; if (servers.size() == 1 && servers[0].second->isUp()) { @@ -150,6 +151,7 @@ static shared_ptr valrandom(const unsigned int val, const Serve shared_ptr wrandom(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq) { + (void)dq; return valrandom(dns_random_uint32(), servers); } @@ -230,6 +232,7 @@ shared_ptr chashed(const ServerPolicy::NumberedServerVector& se shared_ptr roundrobin(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq) { + (void)dq; if (servers.empty()) { return shared_ptr(); }