Skip to content

Commit

Permalink
Work around GCC -Wmaybe-uninitialized false positive
Browse files Browse the repository at this point in the history
Summary:
This works around a GCC bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635

Test Plan:
With an affected GCC version:
  ninja all check

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D8630
  • Loading branch information
Fabcien committed Dec 8, 2020
1 parent a1e3e13 commit 978dc6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/txmempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ std::optional<CTxMemPool::txiter> CTxMemPool::GetIter(const TxId &txid) const {
if (it != mapTx.end()) {
return it;
}
return std::optional<txiter>{};
return std::optional<txiter>{std::nullopt};
}

CTxMemPool::setEntries
Expand Down

0 comments on commit 978dc6c

Please sign in to comment.