X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.h;h=382ef1a33bd04b5caf015727182f24eda8058298;hp=64e0f0fa1fe8e0678a2db98a731b070756130ecf;hb=4cdcc9880e8d3398b6009f067dfd96a8aa709724;hpb=eff2e08302c3c084983f045038bc1708dc6b570a diff --git a/src/main.h b/src/main.h index 64e0f0f..382ef1a 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); } @@ -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); }