fix(build): avoid structured binding captures on clang 14

This commit is contained in:
Nicholas Dudfield
2026-09-17 17:15:11 +07:00
parent 7bf9b931fb
commit 4db2f4ea4c
2 changed files with 5 additions and 2 deletions

View File

@@ -2944,7 +2944,9 @@ class ConsensusExtensions_test : public beast::unit_test::suite
// only to construct its independently signed report/share fixtures.
if (!BEAST_EXPECT(!env.app().getValidatorKeys().keys))
return;
auto const [signer, secret] = randomKeyPair(KeyType::secp256k1);
auto const signerKeys = randomKeyPair(KeyType::secp256k1);
auto const& signer = signerKeys.first;
auto const& secret = signerKeys.second;
env.app().openLedger().modify([&](OpenView& view, beast::Journal) {
STTx report(ttUNL_REPORT, [&](auto& obj) {
obj.setFieldU32(sfLedgerSequence, env.current()->seq());

View File

@@ -2616,10 +2616,11 @@ ConsensusExtensions::onPreBuild(
std::size_t materialized = 0;
for (auto const& [origin, latch] : pending)
{
auto const originId = origin;
auto const skip = [&](char const* reason) {
JLOG(j_.debug())
<< "Export: preBuild witness skipped"
<< " buildSeq=" << seq << " origin=" << origin
<< " buildSeq=" << seq << " origin=" << originId
<< " reason=" << reason;
};
if (!latch->isFieldPresent(sfExportCommitteeHash) ||