Page MenuHomePhabricator

Add linter to ensure chrono::duration is always initialized
ClosedPublic

Authored by sdulfari on Jul 16 2022, 03:33.

Details

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

Diff Detail

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

Event Timeline

Fabien added a subscriber: Fabien.
Fabien added inline comments.
.arclint
141 ↗(On Diff #34404)

no need for c files

This revision is now accepted and ready to land.Jul 16 2022, 15:03