X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.h;h=0a9a663e5b2ec8a18a742aa00068c70dfc1e6dab;hp=64e0f0fa1fe8e0678a2db98a731b070756130ecf;hb=27ce22da0815f4c1fa0e949cc4740e3f4dd1ea9c;hpb=eff2e08302c3c084983f045038bc1708dc6b570a diff --git a/src/main.h b/src/main.h index 64e0f0f..0a9a663 100644 --- a/src/main.h +++ b/src/main.h @@ -620,8 +620,7 @@ public: try { filein >> *this; } - catch (std::exception &e) { - (void)e; + catch (const std::exception&) { return error("%s() : deserialize or I/O error", BOOST_CURRENT_FUNCTION); } @@ -795,7 +794,7 @@ public: ) - int SetMerkleBranch(const CBlock* pblock=NULL); + int SetMerkleBranch(const CBlock* pblock); int GetDepthInMainChain(CBlockIndex* &pindexRet) const; int GetDepthInMainChain() const { CBlockIndex *pindexRet; return GetDepthInMainChain(pindexRet); } bool IsInMainChain() const { return GetDepthInMainChain() > 0; } @@ -1096,8 +1095,7 @@ public: try { filein >> *this; } - catch (std::exception &e) { - (void)e; + catch (const std::exception&) { return error("%s() : deserialize or I/O error", BOOST_CURRENT_FUNCTION); }