From 84c3c2ebe76dcf70f65397758840a9d6b1a0605a Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Wed, 13 Jul 2011 13:43:50 +0200 Subject: [PATCH] fix warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Giel van Schijndel --- src/wallet.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wallet.cpp b/src/wallet.cpp index a60b0b4fa54..68283c9e806 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -23,6 +23,7 @@ bool CWallet::AddKey(const CKey& key) return true; if (!IsCrypted()) return CWalletDB(strWalletFile).WriteKey(key.GetPubKey(), key.GetPrivKey()); + return true; } bool CWallet::AddCryptedKey(const vector &vchPubKey, const vector &vchCryptedSecret)