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/wallet.cpp | |
parent | 72ca72e6370e4fabb40510f80c00b8863322aa50 (diff) | |
download | bitcoin-2d483142a7051389afe74c57a216843e6306f1a8.tar.xz |
Remove 'boost::optional'-related gcc warnings
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ddeff8ba09..a6cabe1f90 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -1642,7 +1642,8 @@ CWallet::ScanResult CWallet::ScanForWalletTransactions(const uint256& start_bloc fAbortRescan = false; ShowProgress(strprintf("%s " + _("Rescanning..."), GetDisplayName()), 0); // show rescan progress in GUI as dialog or on splashscreen, if -rescan on startup uint256 tip_hash; - Optional<int> block_height; + // The way the 'block_height' is initialized is just a workaround for the gcc bug #47679 since version 4.6.0. + Optional<int> block_height = MakeOptional(false, int()); double progress_begin; double progress_end; { |