When compiling from master
, I get the following warning using GCC 10.2.1
0txmempool.cpp: In member function ‘CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>&) const’:
1txmempool.cpp:894:29: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
2 894 | return Optional<txiter>{};
3 | ^
System: OS: Debian Buster Compiler: GCC 10.2.1
Steps to reproduce:
- grab master
- go through the compilation process
- get
-Wmaybe-uninitialized
compiler warning