fix: Add [[maybe_unused]] to fix320Enabled for assert=OFF builds (#7446)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Shi Cheng
2026-06-11 01:24:44 +08:00
committed by GitHub
parent dd0b6754d4
commit 1f359f719c

View File

@@ -813,7 +813,7 @@ doOverpayment(
// 3. The overpayment's penalty interest part (= untrackedInterest
// for the overpayment path; see computeOverpaymentComponents):
// trackedInterestPart()
bool const fix320Enabled = rules.enabled(fixCleanup3_2_0);
[[maybe_unused]] bool const fix320Enabled = rules.enabled(fixCleanup3_2_0);
XRPL_ASSERT_IF(
fix320Enabled,
overpaymentComponents.trackedPrincipalDelta ==