mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
Temporarily work around gcc-13 warning bug in interfaces_tests
This can be reverted once gcc excludes lambdas with decltype(auto) return type from its -Wdangling-reference analysis.
This commit is contained in:
parent
fa28850562
commit
fa266c4bbf
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(findAncestorByHash)
|
||||||
BOOST_AUTO_TEST_CASE(findCommonAncestor)
|
BOOST_AUTO_TEST_CASE(findCommonAncestor)
|
||||||
{
|
{
|
||||||
auto& chain = m_node.chain;
|
auto& chain = m_node.chain;
|
||||||
const CChain& active = WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return Assert(m_node.chainman)->ActiveChain());
|
const CChain& active{*WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return &Assert(m_node.chainman)->ActiveChain())};
|
||||||
auto* orig_tip = active.Tip();
|
auto* orig_tip = active.Tip();
|
||||||
for (int i = 0; i < 10; ++i) {
|
for (int i = 0; i < 10; ++i) {
|
||||||
BlockValidationState state;
|
BlockValidationState state;
|
||||||
|
|
Loading…
Add table
Reference in a new issue