Skip to content

Commit

Permalink
syncres.cc:5161:45: error: declaration of ‘DoTStatus& status’ shadows…
Browse files Browse the repository at this point in the history
… a parameter [-Werror=shadow]
  • Loading branch information
omoerbeek committed Nov 24, 2023
1 parent 5d62243 commit df67469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/recursordist/syncres.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit df67469

Please sign in to comment.