diff --git a/src/rest.cpp b/src/rest.cpp --- a/src/rest.cpp +++ b/src/rest.cpp @@ -516,7 +516,7 @@ oss >> fCheckMemPool; oss >> vOutPoints; } - } catch (const std::ios_base::failure &e) { + } catch (const std::ios_base::failure &) { // abort in case of unreadable binary data return RESTERR(req, HTTP_BAD_REQUEST, "Parse error"); } diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -546,7 +546,7 @@ Coin c4; ss4 >> c4; BOOST_CHECK_MESSAGE(false, "We should have thrown"); - } catch (const std::ios_base::failure &e) { + } catch (const std::ios_base::failure &) { } // Very large scriptPubKey (3*10^9 bytes) past the end of the stream @@ -559,7 +559,7 @@ Coin c5; ss5 >> c5; BOOST_CHECK_MESSAGE(false, "We should have thrown"); - } catch (const std::ios_base::failure &e) { + } catch (const std::ios_base::failure &) { } } @@ -760,7 +760,7 @@ coinbase); test.cache.SelfTest(); GetCoinMapEntry(test.cache.map(), result_value, result_flags); - } catch (std::logic_error &e) { + } catch (std::logic_error &) { result_value = FAIL; result_flags = NO_ENTRY; } @@ -821,7 +821,7 @@ WriteCoinViewEntry(test.cache, child_value, child_flags); test.cache.SelfTest(); GetCoinMapEntry(test.cache.map(), result_value, result_flags); - } catch (std::logic_error &e) { + } catch (std::logic_error &) { result_value = FAIL; result_flags = NO_ENTRY; } diff --git a/src/test/dbwrapper_tests.cpp b/src/test/dbwrapper_tests.cpp --- a/src/test/dbwrapper_tests.cpp +++ b/src/test/dbwrapper_tests.cpp @@ -278,7 +278,7 @@ try { READWRITE(c); str.push_back(c); - } catch (const std::ios_base::failure &e) { + } catch (const std::ios_base::failure &) { break; } } diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -122,7 +122,7 @@ uint8_t pchMsgTmp[4]; ssPeers1 >> pchMsgTmp; ssPeers1 >> addrman1; - } catch (const std::exception &e) { + } catch (const std::exception &) { exceptionThrown = true; } @@ -154,7 +154,7 @@ uint8_t pchMsgTmp[4]; ssPeers1 >> pchMsgTmp; ssPeers1 >> addrman1; - } catch (const std::exception &e) { + } catch (const std::exception &) { exceptionThrown = true; } // Even through de-serialization failed addrman is not left in a clean