HomePhabricator

Add linter to ensure chrono::duration is always initialized

Description

Add linter to ensure chrono::duration is always initialized

Summary:
Follow up to D11759. This avoids accidentially leaving chrono::duration uninitialized which can lead to unexpected behavior.
A reasonable default of 0 has been picked.

Test Plan: Revert D11759, then arc lint

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
sdulfariAuthored on Jul 16 2022, 03:26
sdulfariPushed on Jul 18 2022, 16:10
Reviewer
Restricted Project
Differential Revision
D11760: Add linter to ensure chrono::duration is always initialized
Parents
rABC0ba75da2ed39: [avalanche] Fix conflict time initializer to zero
Branches
Unknown
Tags
Unknown
Reverts
D11759: [avalanche] Fix conflict time initializer to zero