Fix V808 PVS Studio: object created but was not utilized 280/head
authorsvost <ya.nowa@yandex.ru>
Sat, 20 Feb 2016 19:06:53 +0000 (22:06 +0300)
committersvost <ya.nowa@yandex.ru>
Sat, 20 Feb 2016 19:06:53 +0000 (22:06 +0300)
src/rpcmining.cpp
src/rpcrawtransaction.cpp

index fa1eb19..fa02442 100644 (file)
@@ -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));
index 855e9be..118af69 100644 (file)
@@ -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)