From bba9119a757271d2d81ca22d05be8f7583e807d6 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Tue, 29 Jul 2025 14:58:36 -0400 Subject: [PATCH] Fix a couple of errors - Mark variable only used in asserts as [[maybe_unused]]. - Restore commented out line that I think I resolved wrong in an earlier merge to fix Vault tests. --- src/xrpld/app/tx/detail/VaultWithdraw.cpp | 2 +- src/xrpld/ledger/detail/View.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xrpld/app/tx/detail/VaultWithdraw.cpp b/src/xrpld/app/tx/detail/VaultWithdraw.cpp index 6279200b7d..ae81037fc7 100644 --- a/src/xrpld/app/tx/detail/VaultWithdraw.cpp +++ b/src/xrpld/app/tx/detail/VaultWithdraw.cpp @@ -148,7 +148,7 @@ VaultWithdraw::preclaim(PreclaimContext const& ctx) } // The destination account must have consented to receive the asset by // creating a RippleState or MPToken - // authType = AuthType::StrongAuth; + authType = AuthType::StrongAuth; } // Destination MPToken (for an MPT) or trust line (for an IOU) must exist diff --git a/src/xrpld/ledger/detail/View.cpp b/src/xrpld/ledger/detail/View.cpp index a7e7f2e7f8..8530f0292f 100644 --- a/src/xrpld/ledger/detail/View.cpp +++ b/src/xrpld/ledger/detail/View.cpp @@ -1133,6 +1133,7 @@ createPseudoAccount( uint256 const& pseudoOwnerKey, SField const& ownerField) { + [[maybe_unused]] auto const& fields = getPseudoAccountFields(); XRPL_ASSERT( std::count_if(