Browse Source

Fixing compiler warning C4101

Github-Pull: #4856
0.10
ENikS 10 years ago committed by Wladimir J. van der Laan
parent
commit
ec91092df8
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/core_read.cpp
  2. 2
      src/db.h
  3. 2
      src/leveldbwrapper.h
  4. 2
      src/main.cpp
  5. 2
      src/net.cpp
  6. 2
      src/rpcmining.cpp
  7. 2
      src/rpcrawtransaction.cpp
  8. 2
      src/rpcserver.cpp
  9. 4
      src/txmempool.cpp

2
src/core_read.cpp

@ -97,7 +97,7 @@ bool DecodeHexTx(CTransaction& tx, const std::string& strHexTx)
try { try {
ssData >> tx; ssData >> tx;
} }
catch (std::exception &e) { catch (const std::exception &) {
return false; return false;
} }

2
src/db.h

@ -129,7 +129,7 @@ protected:
CDataStream ssValue((char*)datValue.get_data(), (char*)datValue.get_data() + datValue.get_size(), SER_DISK, CLIENT_VERSION); CDataStream ssValue((char*)datValue.get_data(), (char*)datValue.get_data() + datValue.get_size(), SER_DISK, CLIENT_VERSION);
ssValue >> value; ssValue >> value;
} }
catch (std::exception &e) { catch (const std::exception &) {
return false; return false;
} }

2
src/leveldbwrapper.h

@ -99,7 +99,7 @@ public:
try { try {
CDataStream ssValue(strValue.data(), strValue.data() + strValue.size(), SER_DISK, CLIENT_VERSION); CDataStream ssValue(strValue.data(), strValue.data() + strValue.size(), SER_DISK, CLIENT_VERSION);
ssValue >> value; ssValue >> value;
} catch(std::exception &e) { } catch(const std::exception &) {
return false; return false;
} }
return true; return true;

2
src/main.cpp

@ -3163,7 +3163,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CDiskBlockPos *dbp)
blkdat >> nSize; blkdat >> nSize;
if (nSize < 80 || nSize > MAX_BLOCK_SIZE) if (nSize < 80 || nSize > MAX_BLOCK_SIZE)
continue; continue;
} catch (std::exception &e) { } catch (const std::exception &) {
// no valid block header found; don't complain // no valid block header found; don't complain
break; break;
} }

2
src/net.cpp

@ -689,7 +689,7 @@ int CNetMessage::readHeader(const char *pch, unsigned int nBytes)
try { try {
hdrbuf >> hdr; hdrbuf >> hdr;
} }
catch (std::exception &e) { catch (const std::exception &) {
return -1; return -1;
} }

2
src/rpcmining.cpp

@ -553,7 +553,7 @@ Value submitblock(const Array& params, bool fHelp)
try { try {
ssBlock >> pblock; ssBlock >> pblock;
} }
catch (std::exception &e) { catch (const std::exception &) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Block decode failed"); throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Block decode failed");
} }

2
src/rpcrawtransaction.cpp

@ -543,7 +543,7 @@ Value signrawtransaction(const Array& params, bool fHelp)
ssData >> tx; ssData >> tx;
txVariants.push_back(tx); txVariants.push_back(tx);
} }
catch (std::exception &e) { catch (const std::exception &) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed"); throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
} }
} }

2
src/rpcserver.cpp

@ -628,7 +628,7 @@ void StartRPCThreads()
try { try {
vEndpoints.push_back(ParseEndpoint(addr, defaultPort)); vEndpoints.push_back(ParseEndpoint(addr, defaultPort));
} }
catch(boost::system::system_error &e) catch(const boost::system::system_error &)
{ {
uiInterface.ThreadSafeMessageBox( uiInterface.ThreadSafeMessageBox(
strprintf(_("Could not parse -rpcbind value %s as network address"), addr), strprintf(_("Could not parse -rpcbind value %s as network address"), addr),

4
src/txmempool.cpp

@ -574,7 +574,7 @@ CTxMemPool::WriteFeeEstimates(CAutoFile& fileout) const
fileout << CLIENT_VERSION; // version that wrote the file fileout << CLIENT_VERSION; // version that wrote the file
minerPolicyEstimator->Write(fileout); minerPolicyEstimator->Write(fileout);
} }
catch (std::exception &e) { catch (const std::exception &) {
LogPrintf("CTxMemPool::WriteFeeEstimates() : unable to write policy estimator data (non-fatal)"); LogPrintf("CTxMemPool::WriteFeeEstimates() : unable to write policy estimator data (non-fatal)");
return false; return false;
} }
@ -593,7 +593,7 @@ CTxMemPool::ReadFeeEstimates(CAutoFile& filein)
LOCK(cs); LOCK(cs);
minerPolicyEstimator->Read(filein, minRelayFee); minerPolicyEstimator->Read(filein, minRelayFee);
} }
catch (std::exception &e) { catch (const std::exception &) {
LogPrintf("CTxMemPool::ReadFeeEstimates() : unable to read policy estimator data (non-fatal)"); LogPrintf("CTxMemPool::ReadFeeEstimates() : unable to read policy estimator data (non-fatal)");
return false; return false;
} }

Loading…
Cancel
Save