Page MenuHomePhabricator

[LINTER] Work around a cppcheck false positive
ClosedPublic

Authored by Fabien on Jul 12 2021, 12:30.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC5825de5b0cc5: [LINTER] Work around a cppcheck false positive
Summary

Cppcheck is raising another new false positive container out of bounds in the processor tests. Fortunately this time we can work around it easily without having to add an exception.
Note: emplace() would be better but cppcheck disagrees.

Test Plan
ninja check-avalanche
arc lint

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avalanche_fix_cppcheck_false_positive
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16151
Build 32175: Build Diffbuild-without-wallet · build-debug · build-diff · build-clang-tidy · build-clang · lint-circular-dependencies
Build 32174: arc lint + arc unit