HomePhabricator

Fix a -Wshadow warning in net_processing.cpp

Description

Fix a -Wshadow warning in net_processing.cpp

Summary:
The peer variable shadows the function argument. The stat variable is fine but very close to stats which can be confusing.
This diff prefixes the local variables with an underscore to make it less confusing and avoid the shadowing.

Test Plan:
With Clang:

ninja

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D15198

Details

Provenance
FabienAuthored on Jan 18 2024, 13:13
FabienPushed on Jan 18 2024, 15:21
Reviewer
Restricted Project
Differential Revision
D15198: Fix a -Wshadow warning in net_processing.cpp
Parents
rABC833a6a2fed41: [electrum] bump minimum required version of trezorlib to 0.13.8
Branches
Unknown
Tags
Unknown