diff --git a/src/test/fuzz/cluster_linearize.cpp b/src/test/fuzz/cluster_linearize.cpp index 5e0e30a4a8d..85456004a22 100644 --- a/src/test/fuzz/cluster_linearize.cpp +++ b/src/test/fuzz/cluster_linearize.cpp @@ -611,7 +611,6 @@ FUZZ_TARGET(clusterlin_components) // Construct a depgraph. SpanReader reader(buffer); DepGraph depgraph; - std::vector linearization; try { reader >> Using(depgraph); } catch (const std::ios_base::failure&) {} diff --git a/src/test/fuzz/locale.cpp b/src/test/fuzz/locale.cpp index 0336f77a7ed..15c050a4990 100644 --- a/src/test/fuzz/locale.cpp +++ b/src/test/fuzz/locale.cpp @@ -45,7 +45,6 @@ FUZZ_TARGET(locale) const char* c_locale = std::setlocale(LC_ALL, "C"); assert(c_locale != nullptr); - const std::string random_string = fuzzed_data_provider.ConsumeRandomLengthString(5); const int64_t random_int64 = fuzzed_data_provider.ConsumeIntegral(); const std::string tostring_without_locale = util::ToString(random_int64); const std::string strprintf_int_without_locale = strprintf("%d", random_int64); diff --git a/src/test/fuzz/p2p_transport_serialization.cpp b/src/test/fuzz/p2p_transport_serialization.cpp index e457d93cd1f..80a1781de27 100644 --- a/src/test/fuzz/p2p_transport_serialization.cpp +++ b/src/test/fuzz/p2p_transport_serialization.cpp @@ -86,7 +86,6 @@ FUZZ_TARGET(p2p_transport_serialization, .init = initialize_p2p_transport_serial assert(msg.m_raw_message_size == CMessageHeader::HEADER_SIZE + msg.m_message_size); assert(msg.m_time == time); - std::vector header; auto msg2 = NetMsg::Make(msg.m_type, std::span{msg.m_recv}); bool queued = send_transport.SetMessageToSend(msg2); assert(queued); diff --git a/src/test/rbf_tests.cpp b/src/test/rbf_tests.cpp index e2a95148e4d..15134791eb5 100644 --- a/src/test/rbf_tests.cpp +++ b/src/test/rbf_tests.cpp @@ -121,11 +121,6 @@ BOOST_FIXTURE_TEST_CASE(rbf_helper_functions, TestChain100Setup) BOOST_CHECK_EQUAL(entry8_high->GetFee(), high_fee); CTxMemPool::setEntries set_12_normal{entry1_normal, entry2_normal}; - CTxMemPool::setEntries set_34_cpfp{entry3_low, entry4_high}; - CTxMemPool::setEntries set_56_low{entry5_low, entry6_low_prioritised}; - CTxMemPool::setEntries set_78_high{entry7_high, entry8_high}; - CTxMemPool::setEntries all_entries{entry1_normal, entry2_normal, entry3_low, entry4_high, - entry5_low, entry6_low_prioritised, entry7_high, entry8_high}; CTxMemPool::setEntries empty_set; const auto unused_txid = Txid::FromUint256(GetRandHash()); diff --git a/src/test/txgraph_tests.cpp b/src/test/txgraph_tests.cpp index 444e2185f36..d29eb725a9e 100644 --- a/src/test/txgraph_tests.cpp +++ b/src/test/txgraph_tests.cpp @@ -290,7 +290,7 @@ BOOST_AUTO_TEST_CASE(txgraph_trim_big_singletons) BOOST_CHECK(graph->IsOversized(TxGraph::Level::TOP)); // Call Trim() to remove transactions and bring the cluster back within limits. - auto removed_refs = graph->Trim(); + graph->Trim(); graph->SanityCheck(); BOOST_CHECK_EQUAL(graph->GetTransactionCount(TxGraph::Level::TOP), NUM_TOTAL_TX - 6); BOOST_CHECK(!graph->IsOversized(TxGraph::Level::TOP)); diff --git a/src/wallet/test/coinselector_tests.cpp b/src/wallet/test/coinselector_tests.cpp index dee4b05c645..fdce22a2327 100644 --- a/src/wallet/test/coinselector_tests.cpp +++ b/src/wallet/test/coinselector_tests.cpp @@ -169,7 +169,6 @@ BOOST_AUTO_TEST_CASE(bnb_search_test) { FastRandomContext rand{}; // Setup - std::vector utxo_pool; SelectionResult expected_result(CAmount(0), SelectionAlgorithm::BNB); size_t expected_attempts; diff --git a/src/wallet/test/util.cpp b/src/wallet/test/util.cpp index 19281be63bd..f51f11492d7 100644 --- a/src/wallet/test/util.cpp +++ b/src/wallet/test/util.cpp @@ -67,7 +67,6 @@ std::shared_ptr TestCreateWallet(WalletContext& context) options.create_flags = WALLET_FLAG_DESCRIPTORS; DatabaseStatus status; bilingual_str error; - std::vector warnings; auto database = MakeWalletDatabase("", options, status, error); return TestCreateWallet(std::move(database), context, options.create_flags); } @@ -91,7 +90,6 @@ std::shared_ptr TestLoadWallet(WalletContext& context) options.require_existing = true; DatabaseStatus status; bilingual_str error; - std::vector warnings; auto database = MakeWalletDatabase("", options, status, error); return TestLoadWallet(std::move(database), context); } diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index c7ce9553bee..1c3047727db 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -728,7 +728,6 @@ BOOST_FIXTURE_TEST_CASE(RemoveTxs, TestChain100Setup) CKey key = GenerateRandomKey(); AddKey(*wallet, key); - std::string error; m_coinbase_txns.push_back(CreateAndProcessBlock({}, GetScriptForRawPubKey(coinbaseKey.GetPubKey())).vtx[0]); auto block_tx = TestSimpleSpend(*m_coinbase_txns[0], 0, coinbaseKey, GetScriptForRawPubKey(key.GetPubKey())); CreateAndProcessBlock({block_tx}, GetScriptForRawPubKey(coinbaseKey.GetPubKey()));