Skip to content

Commit

Permalink
address lint about uninitalized value in ImmediateFuture
Browse files Browse the repository at this point in the history
Reviewed By: kavehahmadi60

Differential Revision: D63495061

fbshipit-source-id: b7de748c1e4a198c49001f66be80ef94606c6e72
  • Loading branch information
genevievehelsel authored and facebook-github-bot committed Sep 27, 2024
1 parent 9719800 commit 95b63a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eden/common/utils/ImmediateFuture.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class ImmediateFuture {
// TODO: At the cost of reimplementing parts of Try, we could save a byte or
// four by merging these tag bits with Try's tag bits, and differentiate
// between Value, Exception, SemiFuture, and Nothing.
Kind kind_;
Kind kind_{Kind::Nothing};

union {
Try immediate_;
Expand Down

0 comments on commit 95b63a5

Please sign in to comment.