Page MenuHomePhabricator

Fix shadow warning
ClosedPublic

Authored by Fabien on May 28 2020, 09:07.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCba85dd611645: Fix shadow warning
Summary

The blockparams parameter of the lambda function shadows the
blockparams locale variable from FindEarliestAtLeast according to
GCC.

Test Plan

With GCC as a compiler (tested with GCC 10.1):

cmake -GNInja .. -DCMAKE_CXX_FLAGS=Werror=shadow
ninja

Check the warning is gone.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.May 28 2020, 09:07
This revision is now accepted and ready to land.May 28 2020, 12:26
This revision was automatically updated to reflect the committed changes.