Add returns to avoid annoying compile-time warnings.
authorMatt Corallo <matt@bluematt.me>
Mon, 10 Oct 2011 19:51:07 +0000 (15:51 -0400)
committerLuke Dashjr <luke-jr+git@utopios.org>
Wed, 2 Nov 2011 15:04:13 +0000 (11:04 -0400)
src/keystore.h
src/wallet.cpp

index bbfac83..1f2c6ae 100644 (file)
@@ -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;
index 8bbb80c..298a2c6 100644 (file)
@@ -40,6 +40,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)