From 298bf5d563cc740c6ae71750d86942e0278b22d6 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 15 Sep 2021 15:39:40 -0400 Subject: [PATCH] test: refactor: declare NoMalleation const auto To avoid linker error on some platforms: https://github.com/bitcoin/bitcoin/pull/21526#discussion_r709404714 Co-authored-by: Russ Yanofsky --- src/test/util/chainstate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/util/chainstate.h b/src/test/util/chainstate.h index 38a6be7e9a..81ea4c38f5 100644 --- a/src/test/util/chainstate.h +++ b/src/test/util/chainstate.h @@ -16,7 +16,7 @@ #include -auto NoMalleation = [](CAutoFile& file, SnapshotMetadata& meta){}; +const auto NoMalleation = [](CAutoFile& file, SnapshotMetadata& meta){}; /** * Create and activate a UTXO snapshot, optionally providing a function to