From 0959d37e3e0f80010a78d175e3846dabf5d35919 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sun, 26 May 2019 11:01:58 +0200 Subject: Don't use global (external) symbols for symbols that are used in only one translation unit --- src/validation.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/validation.cpp') diff --git a/src/validation.cpp b/src/validation.cpp index 6fd796464..31b2eb397 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -78,7 +78,7 @@ bool CBlockIndexWorkComparator::operator()(const CBlockIndex *pa, const CBlockIn return false; } -CChainState g_chainstate; +static CChainState g_chainstate; CChainState& ChainstateActive() { return g_chainstate; } @@ -1049,7 +1049,7 @@ bool CChainState::IsInitialBlockDownload() const return false; } -CBlockIndex *pindexBestForkTip = nullptr, *pindexBestForkBase = nullptr; +static CBlockIndex *pindexBestForkTip = nullptr, *pindexBestForkBase = nullptr; static void AlertNotify(const std::string& strMessage) { @@ -4762,4 +4762,5 @@ public: delete (*it1).second; mapBlockIndex.clear(); } -} instance_of_cmaincleanup; +}; +static CMainCleanup instance_of_cmaincleanup; -- cgit v1.2.3