HomePhabricator

Fix Clang Static Analyzer warnings

Description

Fix Clang Static Analyzer warnings

Summary:
This is a backport of Core PR12963

  • Fix dead stores. Values were stored but never read. Limit scope.
  • Add assertion to guide static analyzers. Clang Static Analyzer needs this guidance.

Depends on D3364

Test Plan:

make check

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Apr 12 2018, 06:25
deadalnixCommitted on Jun 24 2019, 15:50
deadalnixPushed on Jun 24 2019, 15:50
Reviewer
Restricted Project
Differential Revision
D3377: Fix Clang Static Analyzer warnings
Parents
rABCafc4447ef4ef: wallet: Make fee settings non-static members
Branches
Unknown
Tags
Unknown

Event Timeline