diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-01-30 13:28:41 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-01-30 22:44:28 +0200 |
commit | 2d483142a7051389afe74c57a216843e6306f1a8 (patch) | |
tree | accfe091b5d48697633acfb009a718d3939657d2 /src/wallet/rpcwallet.cpp | |
parent | 72ca72e6370e4fabb40510f80c00b8863322aa50 (diff) | |
download | bitcoin-2d483142a7051389afe74c57a216843e6306f1a8.tar.xz |
Remove 'boost::optional'-related gcc warnings
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 270a61ade8..ada66ec7f9 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1591,7 +1591,8 @@ static UniValue listsinceblock(const JSONRPCRequest& request) auto locked_chain = pwallet->chain().lock(); LOCK(pwallet->cs_wallet); - Optional<int> height; // Height of the specified block or the common ancestor, if the block provided was in a deactivated chain. + // The way the 'height' is initialized is just a workaround for the gcc bug #47679 since version 4.6.0. + Optional<int> height = MakeOptional(false, int()); // Height of the specified block or the common ancestor, if the block provided was in a deactivated chain. Optional<int> altheight; // Height of the specified block, even if it's in a deactivated chain. int target_confirms = 1; isminefilter filter = ISMINE_SPENDABLE; |