mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Merge #16286: refactoring: wallet: Fix GCC 7.4.0 warning
d8bd97d5ee766a75dec016203bd4d4aafcc24c4f Fix GCC 7.4.0 warning (Hennadii Stepanov)
Pull request description:
Having #13756 and #16239 merged cause GCC warning:
```
$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
...
$ make -j 4 > /dev/null
wallet/wallet.cpp: In member function ‘CWallet::Balance CWallet::GetBalance(int, bool) const’:
wallet/wallet.cpp:2269:45: warning: enumeral and non-enumeral type in conditional expression [-Wextra]
isminefilter reuse_filter = avoid_reuse ? 0 : ISMINE_USED;
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
```
Fixed with this PR.
ACKs for top commit:
practicalswift:
utACK d8bd97d5ee766a75dec016203bd4d4aafcc24c4f
promag:
ACK d8bd97d.
kallewoof:
utACK d8bd97d5ee766a75dec016203bd4d4aafcc24c4f
meshcollider:
Trivial utACK d8bd97d5ee
Tree-SHA512: 2fb315ac82f290c8b9f4e48d1b4526b9babe0717c68593c7bc55cd6c289e64b6322aba72984f39291a9254b57d3f6ba8dbfe03799f510c0c1dc108b21b286732
This commit is contained in:
parent
9d4282cb72
commit
ab36852267
@ -2421,7 +2421,7 @@ std::unordered_set<const CWalletTx*, WalletTxHasher> CWallet::GetSpendableTXs()
|
|||||||
CWallet::Balance CWallet::GetBalance(const int min_depth, const bool avoid_reuse, const bool fAddLocked, const CCoinControl* coinControl) const
|
CWallet::Balance CWallet::GetBalance(const int min_depth, const bool avoid_reuse, const bool fAddLocked, const CCoinControl* coinControl) const
|
||||||
{
|
{
|
||||||
Balance ret;
|
Balance ret;
|
||||||
isminefilter reuse_filter = avoid_reuse ? 0 : ISMINE_USED;
|
isminefilter reuse_filter = avoid_reuse ? ISMINE_NO : ISMINE_USED;
|
||||||
{
|
{
|
||||||
LOCK(cs_wallet);
|
LOCK(cs_wallet);
|
||||||
std::set<uint256> trusted_parents;
|
std::set<uint256> trusted_parents;
|
||||||
|
Loading…
Reference in New Issue
Block a user