diff options
| author | Matt Corallo <[email protected]> | 2011-10-10 15:51:07 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-10-25 11:40:59 -0400 |
| commit | 0767e691996812f12e24c082e83184dcc86a552a (patch) | |
| tree | 26a59dc94d551cad650b8fa41d17b7de6cb137d8 /src | |
| parent | Add -Wno-strict-aliasing because boost breaks that too much. (diff) | |
| download | discoin-0767e691996812f12e24c082e83184dcc86a552a.tar.xz discoin-0767e691996812f12e24c082e83184dcc86a552a.zip | |
Add returns to avoid annoying compile-time warnings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keystore.h | 1 | ||||
| -rw-r--r-- | src/wallet.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/keystore.h b/src/keystore.h index bbfac83d1..1f2c6aea3 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -114,6 +114,7 @@ public: return CBasicKeyStore::HaveKey(address); return mapCryptedKeys.count(address) > 0; } + return false; } bool GetKey(const CBitcoinAddress &address, CKey& keyOut) const; bool GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char>& vchPubKeyOut) const; diff --git a/src/wallet.cpp b/src/wallet.cpp index 30a561dcb..46c57e2fc 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -39,6 +39,7 @@ bool CWallet::AddCryptedKey(const vector<unsigned char> &vchPubKey, const vector else return CWalletDB(strWalletFile).WriteCryptedKey(vchPubKey, vchCryptedSecret); } + return false; } bool CWallet::Unlock(const string& strWalletPassphrase) |