From 9525b32a1350f10441b6921f64151f1d9156ab52 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 21 Jun 2024 11:10:28 +0200 Subject: [PATCH] auth: Use [[maybe_unused]] in the distributor unit tests As suggested by Otto. --- pdns/test-distributor_hh.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pdns/test-distributor_hh.cc b/pdns/test-distributor_hh.cc index 57337cd431..4fe4f3e68b 100644 --- a/pdns/test-distributor_hh.cc +++ b/pdns/test-distributor_hh.cc @@ -65,9 +65,8 @@ BOOST_AUTO_TEST_CASE(test_distributor_basic) { struct BackendSlow { - std::unique_ptr question(Question& query) + std::unique_ptr 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 -- 2.47.2