Skip to content

Commit 0ede354

Browse files
author
MarcoFalke
committed
Merge #20386: Silence false positive GCC warning in wallet/rpcwallet.cpp
049feab Add missing optional.h include (Kristaps Kaupe) 29c66ac Silence false positive GCC warning (Kristaps Kaupe) Pull request description: Resolves #20381. ACKs for top commit: jnewbery: utACK 049feab practicalswift: ACK 049feab: diagnostics signal to noise is increased by getting rid of false positives hebasto: ACK 049feab, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: 05d84f51521c3b843ed6bf284a83a91db015ad0cd4fcf8b602275812575c1f6b4899286a89d360fbd3caef184abdfb9d834e119842d8740919892f05a0f9e1f8
2 parents fb7726e + 049feab commit 0ede354

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <interfaces/chain.h>
99
#include <key_io.h>
1010
#include <node/context.h>
11+
#include <optional.h>
1112
#include <outputtype.h>
1213
#include <policy/feerate.h>
1314
#include <policy/fees.h>
@@ -3593,7 +3594,7 @@ static RPCHelpMan rescanblockchain()
35933594
}
35943595

35953596
int start_height = 0;
3596-
Optional<int> stop_height;
3597+
Optional<int> stop_height = MakeOptional(false, int());
35973598
uint256 start_block;
35983599
{
35993600
LOCK(pwallet->cs_wallet);

0 commit comments

Comments
 (0)