From 3367ed863ceb6366d6603b5f0c6efbb09bba4667 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 12 Apr 2018 13:51:26 +0100 Subject: blockchain_blackball: fix build with CLANG 5 It doesn't like the explicit NULL dereference (which is fine, honest) --- src/blockchain_utilities/blockchain_blackball.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blockchain_utilities/blockchain_blackball.cpp b/src/blockchain_utilities/blockchain_blackball.cpp index 40ce898d9..1243822bb 100644 --- a/src/blockchain_utilities/blockchain_blackball.cpp +++ b/src/blockchain_utilities/blockchain_blackball.cpp @@ -253,7 +253,8 @@ int main(int argc, char* argv[]) return 1; } std::vector> core_storage(inputs.size()); - tx_memory_pool m_mempool(*(Blockchain*)NULL); + Blockchain *blockchain = NULL; + tx_memory_pool m_mempool(*blockchain); for (size_t n = 0; n < inputs.size(); ++n) { core_storage[n].reset(new Blockchain(m_mempool)); -- cgit v1.2.3