From d721227d0325e31f8794e18592f2cfde64027d60 Mon Sep 17 00:00:00 2001 From: svost Date: Fri, 10 Apr 2015 10:45:54 +0300 Subject: [PATCH] Remove msvc warnings. C4701 - script.h C4702 - keystore.h --- src/keystore.h | 1 - src/script.h | 3 +-- 2 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/keystore.h b/src/keystore.h index 32d7783..96285fb 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -185,7 +185,6 @@ public: return CBasicKeyStore::HaveKey(address); return mapCryptedKeys.count(address) > 0; } - return false; } bool GetKey(const CKeyID &address, CKey& keyOut) const; bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const; diff --git a/src/script.h b/src/script.h index 157f41f..dfd2c19 100644 --- a/src/script.h +++ b/src/script.h @@ -447,7 +447,7 @@ public: // Immediate operand if (opcode <= OP_PUSHDATA4) { - uint32_t nSize; + uint32_t nSize = OP_0; if (opcode < OP_PUSHDATA1) { nSize = opcode; @@ -462,7 +462,6 @@ public: { if (end() - pc < 2) return false; - nSize = 0; memcpy(&nSize, &pc[0], 2); pc += 2; } -- 1.7.1