diff --git a/src/libxrpl/ledger/View.cpp b/src/libxrpl/ledger/View.cpp index 837d5dfee6..7b5b746e0d 100644 --- a/src/libxrpl/ledger/View.cpp +++ b/src/libxrpl/ledger/View.cpp @@ -2333,7 +2333,6 @@ accountSendMultiIOU( if (auto stream = j.trace()) { std::string sender_bal("-"); - std::string receiver_bal("-"); if (sender) sender_bal = sender->getFieldAmount(sfBalance).getFullText(); diff --git a/src/test/app/Batch_test.cpp b/src/test/app/Batch_test.cpp index d8a8cd6c5d..8fcadcb1a5 100644 --- a/src/test/app/Batch_test.cpp +++ b/src/test/app/Batch_test.cpp @@ -3280,7 +3280,6 @@ class Batch_test : public beast::unit_test::suite batch::inner(pay(alice, bob, XRP(2)), aliceSeq + 2)); auto const noopTxn = env.jt(noop(alice), seq(aliceSeq + 1)); - auto const noopTxnID = to_string(noopTxn.stx->getTransactionID()); env(noopTxn, ter(tesSUCCESS)); env.close(); @@ -3373,7 +3372,6 @@ class Batch_test : public beast::unit_test::suite // AccountSet Txn auto const noopTxn = env.jt(noop(alice), ticket::use(aliceTicketSeq + 1)); - auto const noopTxnID = to_string(noopTxn.stx->getTransactionID()); env(noopTxn, ter(tesSUCCESS)); // Batch Txn diff --git a/src/test/app/Loan_test.cpp b/src/test/app/Loan_test.cpp index 5477994c53..a0224148c0 100644 --- a/src/test/app/Loan_test.cpp +++ b/src/test/app/Loan_test.cpp @@ -1903,7 +1903,6 @@ protected: } // Finally! Create a loan - std::string testData; auto coverAvailable = [&env, this](uint256 const& brokerID, Number const& expected) { if (auto const brokerSle = env.le(keylet::loanbroker(brokerID)); @@ -3765,10 +3764,8 @@ protected: Account const alice{"alice"}; std::string const borrowerPass = "borrower"; - std::string const borrowerSeed = "ssBRAsLpH4778sLNYC4ik1JBJsBVf"; Account borrower{borrowerPass, KeyType::ed25519}; auto const lenderPass = "lender"; - std::string const lenderSeed = "shPTCZGwTEhJrYT8NbcNkeaa8pzPM"; Account lender{lenderPass, KeyType::ed25519}; env.fund(XRP(1'000'000), alice, lender, borrower); @@ -7091,7 +7088,6 @@ public: void run() override { - auto const argument = arg(); auto const numIterations = [s = arg()]() -> int { int defaultNum = 5; if (s.empty()) diff --git a/src/test/beast/beast_abstract_clock_test.cpp b/src/test/beast/beast_abstract_clock_test.cpp index 94b7909820..43a210e128 100644 --- a/src/test/beast/beast_abstract_clock_test.cpp +++ b/src/test/beast/beast_abstract_clock_test.cpp @@ -37,8 +37,6 @@ public: using clock_type = manual_clock; clock_type c; - std::stringstream ss; - auto c1 = c.now().time_since_epoch(); c.set(clock_type::time_point(std::chrono::seconds(1))); auto c2 = c.now().time_since_epoch(); diff --git a/src/test/jtx/impl/Oracle.cpp b/src/test/jtx/impl/Oracle.cpp index 302880c972..24f7312e73 100644 --- a/src/test/jtx/impl/Oracle.cpp +++ b/src/test/jtx/impl/Oracle.cpp @@ -216,7 +216,6 @@ Oracle::set(UpdateArg const& arg) return s; assert(s.size() <= 20); // anything else must be 160-bit hex string - std::string h = strHex(s); return strHex(s).append(40 - s.size() * 2, '0'); }; for (auto const& data : arg.series) diff --git a/src/test/peerfinder/PeerFinder_test.cpp b/src/test/peerfinder/PeerFinder_test.cpp index 2a9290ac3e..038ed438f0 100644 --- a/src/test/peerfinder/PeerFinder_test.cpp +++ b/src/test/peerfinder/PeerFinder_test.cpp @@ -123,7 +123,6 @@ public: if (!BEAST_EXPECT( logic.onConnected(slot, beast::IP::Endpoint::from_string("65.0.0.2:5")))) return; - std::string s = "."; if (!BEAST_EXPECT(logic.activate(slot, pk, false) == PeerFinder::Result::success)) return; logic.on_closed(slot); diff --git a/src/test/rpc/DeliveredAmount_test.cpp b/src/test/rpc/DeliveredAmount_test.cpp index e024e249c3..c156a566b0 100644 --- a/src/test/rpc/DeliveredAmount_test.cpp +++ b/src/test/rpc/DeliveredAmount_test.cpp @@ -287,7 +287,6 @@ class DeliveredAmount_test : public beast::unit_test::suite env.require(balance(carol, USD(0))); env.close(); - std::string index; Json::Value jvParams; jvParams[jss::ledger_index] = 4u; jvParams[jss::transactions] = true; diff --git a/src/xrpld/app/ledger/detail/InboundLedger.cpp b/src/xrpld/app/ledger/detail/InboundLedger.cpp index 4dd8ab887e..b8158e507f 100644 --- a/src/xrpld/app/ledger/detail/InboundLedger.cpp +++ b/src/xrpld/app/ledger/detail/InboundLedger.cpp @@ -1056,8 +1056,6 @@ InboundLedger::processData(std::shared_ptr peer, protocol::TMLedgerData& p if ((packet.type() == protocol::liTX_NODE) || (packet.type() == protocol::liAS_NODE)) { - std::string type = packet.type() == protocol::liTX_NODE ? "liTX_NODE: " : "liAS_NODE: "; - if (packet.nodes().empty()) { JLOG(journal_.info()) << peer->id() << ": response with no nodes"; diff --git a/src/xrpld/core/detail/Config.cpp b/src/xrpld/core/detail/Config.cpp index d1937fa83e..ce4ba43cd8 100644 --- a/src/xrpld/core/detail/Config.cpp +++ b/src/xrpld/core/detail/Config.cpp @@ -386,7 +386,6 @@ Config::setup(std::string const& strConf, bool bQuiet, bool bSilent, bool bStand if (RUN_STANDALONE) LEDGER_HISTORY = 0; - std::string ledgerTxDbType; Section ledgerTxTablesSection = section("ledger_tx_tables"); get_if_exists(ledgerTxTablesSection, "use_tx_tables", USE_TX_TABLES);