mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
chore: Fix release build error (#5864)
This change fixes a release build error with GCC 15.2. The `fields` variable is only used in `XRPL_ASSERT`, which evaluates to nothing in a Release build, leaving the variable unused. This change silences the build warning. Co-authored-by: Bart Thomee <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
@@ -1134,7 +1134,7 @@ createPseudoAccount(
|
|||||||
uint256 const& pseudoOwnerKey,
|
uint256 const& pseudoOwnerKey,
|
||||||
SField const& ownerField)
|
SField const& ownerField)
|
||||||
{
|
{
|
||||||
auto const& fields = getPseudoAccountFields();
|
[[maybe_unused]] auto const& fields = getPseudoAccountFields();
|
||||||
XRPL_ASSERT(
|
XRPL_ASSERT(
|
||||||
std::count_if(
|
std::count_if(
|
||||||
fields.begin(),
|
fields.begin(),
|
||||||
|
|||||||
Reference in New Issue
Block a user