HomePhabricator

Fix an uninitialized const reference warning in hash_tests

Description

Fix an uninitialized const reference warning in hash_tests

Summary:
Fixes the warning (Clang 11):

warning: variable 'nVersionDummy' is uninitialized when passed as a
const reference argument here [-Wuninitialized-const-reference]
        ::Unserialize(s, VARINT(nVersionDummy));

Test Plan:
With Clang 11:

ninja check-bitcoin-hash_tests

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
FabienAuthored on Nov 18 2020, 09:13
FabienPushed on Nov 18 2020, 10:09
Reviewer
Restricted Project
Differential Revision
D8444: Fix an uninitialized const reference warning in hash_tests
Parents
rABC781244d1ff80: net: Add missing cs_vNodes lock
Branches
Unknown
Tags
Unknown