mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
Merge #20386: Silence false positive GCC warning in wallet/rpcwallet.cpp
049feabf28Add missing optional.h include (Kristaps Kaupe)29c66ace5cSilence false positive GCC warning (Kristaps Kaupe) Pull request description: Resolves #20381. ACKs for top commit: jnewbery: utACK049feabf28practicalswift: ACK049feabf28: diagnostics signal to noise is increased by getting rid of false positives hebasto: ACK049feabf28, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: 05d84f51521c3b843ed6bf284a83a91db015ad0cd4fcf8b602275812575c1f6b4899286a89d360fbd3caef184abdfb9d834e119842d8740919892f05a0f9e1f8
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <interfaces/chain.h>
|
||||
#include <key_io.h>
|
||||
#include <node/context.h>
|
||||
#include <optional.h>
|
||||
#include <outputtype.h>
|
||||
#include <policy/feerate.h>
|
||||
#include <policy/fees.h>
|
||||
@@ -3593,7 +3594,7 @@ static RPCHelpMan rescanblockchain()
|
||||
}
|
||||
|
||||
int start_height = 0;
|
||||
Optional<int> stop_height;
|
||||
Optional<int> stop_height = MakeOptional(false, int());
|
||||
uint256 start_block;
|
||||
{
|
||||
LOCK(pwallet->cs_wallet);
|
||||
|
||||
Reference in New Issue
Block a user