]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: Use [[maybe_unused]] in the distributor unit tests 14360/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 21 Jun 2024 09:10:28 +0000 (11:10 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 21 Jun 2024 09:10:28 +0000 (11:10 +0200)
As suggested by Otto.

pdns/test-distributor_hh.cc

index 57337cd4311d09ba5d92ad58f7ba5c11c43d9a3f..4fe4f3e68bff22a46122551f3086a84dc9f985c0 100644 (file)
@@ -65,9 +65,8 @@ BOOST_AUTO_TEST_CASE(test_distributor_basic) {
 
 struct BackendSlow
 {
-  std::unique_ptr<DNSPacket> question(Question& query)
+  std::unique_ptr<DNSPacket> question([[maybe_unused]] Question& query)
   {
-    (void)query;
     if (d_shouldSleep) {
       /* only sleep once per distributor thread, otherwise
          we are sometimes destroyed before picking up the queued