-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Description
On the master (e52ce9f):
$ ./configure CC=gcc-10 CXX=g++-10
$ make clean > /dev/null
$ make > /dev/null
txmempool.cpp: In member function ‘CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>&) const’:
txmempool.cpp:894:29: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
894 | return Optional<txiter>{};
| ^
The following patch
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -891,7 +891,7 @@ Optional<CTxMemPool::txiter> CTxMemPool::GetIter(const uint256& txid) const
{
auto it = mapTx.find(txid);
if (it != mapTx.end()) return it;
- return Optional<txiter>{};
+ return {};
}
CTxMemPool::setEntries CTxMemPool::GetIterSet(const std::set<uint256>& hashes) const
doesn't help.
System:
$ lsb_release -dc
Description: Linux Mint 20.1
Codename: ulyssa
$ g++-10 --version | grep g++
g++-10 (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0
Metadata
Metadata
Assignees
Labels
No labels