From: Otto Moerbeek Date: Fri, 24 Nov 2023 09:06:32 +0000 (+0100) Subject: syncres.cc:5161:45: error: declaration of ‘DoTStatus& status’ shadows a parameter... X-Git-Tag: rec-5.0.0-rc1~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df6746923ac96492fd493cb1621f6de6bc1b6fd6;p=thirdparty%2Fpdns.git syncres.cc:5161:45: error: declaration of ‘DoTStatus& status’ shadows a parameter [-Werror=shadow] --- diff --git a/pdns/recursordist/syncres.cc b/pdns/recursordist/syncres.cc index 6243d3723f..1515067efb 100644 --- a/pdns/recursordist/syncres.cc +++ b/pdns/recursordist/syncres.cc @@ -5158,7 +5158,7 @@ static void updateDoTStatus(ComboAddress address, DoTStatus::Status status, time auto iter = lock->d_map.find(address); if (iter != lock->d_map.end()) { iter->d_status = status; - lock->d_map.modify(iter, [=](DoTStatus& status) { status.d_ttd = time; }); + lock->d_map.modify(iter, [=](DoTStatus& statusToModify) { statusToModify.d_ttd = time; }); if (updateBusy) { --lock->d_numBusy; }