On the master (e52ce9f2b312b3cf3b0837918e07d7603e241d63):
0$ ./configure CC=gcc-10 CXX=g++-10
1$ make clean > /dev/null
2$ make > /dev/null
3txmempool.cpp: In member function ‘CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>&) const’:
4txmempool.cpp:894:29: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
5 894 | return Optional<txiter>{};
6 | ^
The following patch
0--- a/src/txmempool.cpp
1+++ b/src/txmempool.cpp
2@@ -891,7 +891,7 @@ Optional<CTxMemPool::txiter> CTxMemPool::GetIter(const uint256& txid) const
3 {
4 auto it = mapTx.find(txid);
5 if (it != mapTx.end()) return it;
6- return Optional<txiter>{};
7+ return {};
8 }
9
10 CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>& hashes) const
doesn’t help.
System:
0$ lsb_release -dc
1Description: Linux Mint 20.1
2Codename: ulyssa
3$ g++-10 --version | grep g++
4g++-10 (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0