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.
Details
Details
- Reviewers
PiRK - Group Reviewers
Restricted Project - Commits
- rABCcf7ca3c40b3e: Fix a -Wshadow warning in net_processing.cpp
With Clang:
ninja
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- fix_shadow
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 26459 Build 52488: Build Diff lint-circular-dependencies · build-clang-tidy · build-debug · build-clang · build-diff · build-without-wallet Build 52487: arc lint + arc unit