From: svost Date: Sat, 20 Feb 2016 19:06:53 +0000 (+0300) Subject: Fix V808 PVS Studio: object created but was not utilized X-Git-Tag: nvc-v0.5.6~59^2 X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=commitdiff_plain;h=e27b30dfa0c10d8c65b69cdf4240710b614d46fc Fix V808 PVS Studio: object created but was not utilized --- diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index fa1eb19..fa02442 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -50,7 +50,7 @@ Value getmininginfo(const Array& params, bool fHelp) "getmininginfo\n" "Returns an object containing mining-related information."); - Object obj, diff, weight; + Object obj, diff; obj.push_back(Pair("blocks", (int)nBestHeight)); obj.push_back(Pair("currentblocksize",(uint64_t)nLastBlockSize)); obj.push_back(Pair("currentblocktx",(uint64_t)nLastBlockTx)); diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 855e9be..118af69 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -644,7 +644,6 @@ Value createmultisig(const Array& params, bool fHelp) int nRequired = params[0].get_int(); const Array& keys = params[1].get_array(); - string strAccount; // Gather public keys if (nRequired < 1)