From: Remi Gacogne Date: Fri, 21 Jun 2024 09:10:28 +0000 (+0200) Subject: auth: Use [[maybe_unused]] in the distributor unit tests X-Git-Tag: rec-5.2.0-alpha0~5^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14360%2Fhead;p=thirdparty%2Fpdns.git auth: Use [[maybe_unused]] in the distributor unit tests As suggested by Otto. --- 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