mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
fix: keep amendment default member initializer, silence clang-tidy
This commit is contained in:
@@ -71,7 +71,13 @@ struct TxSettings
|
||||
/**
|
||||
* The amendment gating this transaction, or uint256{} if always available.
|
||||
*/
|
||||
uint256 amendment;
|
||||
// The `{}` looks redundant, because BaseUInt's default constructor already
|
||||
// zeroes the value. It is not: without a default member initializer here,
|
||||
// every partial designated initializer in transactions.macro trips the
|
||||
// missing-designated-field-initializers warning, which the build treats as
|
||||
// an error.
|
||||
// NOLINTNEXTLINE(readability-redundant-member-init)
|
||||
uint256 amendment{};
|
||||
|
||||
/**
|
||||
* Operations this transaction is permitted to perform.
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
* struct TxSettings
|
||||
* {
|
||||
* Delegation delegable = Delegable;
|
||||
* uint256 amendment;
|
||||
* uint256 amendment{};
|
||||
* Privilege privileges = NoPriv;
|
||||
* };
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user