]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix a few "unused parameter" warnings
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 Sep 2024 12:54:59 +0000 (14:54 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Jan 2025 13:37:18 +0000 (14:37 +0100)
pdns/dnsdistdist/dnsdist-lbpolicies.cc

index d5659dae5d7a05bee07516b103f9ce04b3c5e315..b28025d8b8dc69386aed7cdddcc35946776d7de7 100644 (file)
@@ -55,6 +55,7 @@ template <class T> static std::shared_ptr<DownstreamState> getLeastOutstanding(c
 // get server with least outstanding queries, and within those, with the lowest order, and within those: the fastest
 shared_ptr<DownstreamState> leastOutstanding(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq)
 {
+  (void)dq;
   using LeastOutstandingType = std::tuple<int,int,double>;
 
   if (servers.size() == 1 && servers[0].second->isUp()) {
@@ -150,6 +151,7 @@ static shared_ptr<DownstreamState> valrandom(const unsigned int val, const Serve
 
 shared_ptr<DownstreamState> wrandom(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq)
 {
+  (void)dq;
   return valrandom(dns_random_uint32(), servers);
 }
 
@@ -230,6 +232,7 @@ shared_ptr<DownstreamState> chashed(const ServerPolicy::NumberedServerVector& se
 
 shared_ptr<DownstreamState> roundrobin(const ServerPolicy::NumberedServerVector& servers, const DNSQuestion* dq)
 {
+  (void)dq;
   if (servers.empty()) {
     return shared_ptr<DownstreamState>();
   }