From 3b13a7473eef3696b4d85109df085250697ff48e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 17 Feb 2016 04:05:39 +0000 Subject: Shutup about VERSION 0 --- src/blockchain_db/lmdb/db_lmdb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/blockchain_db/lmdb') diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index aec584e56..5119be3f5 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1142,10 +1142,12 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags) LOG_PRINT_RED_L0("Existing lmdb database was made by a later version. We don't know how it will change yet."); compatible = false; } - else if (VERSION > 0 && *(const uint32_t*)v.mv_data < VERSION) +#if VERSION > 0 + else if (*(const uint32_t*)v.mv_data < VERSION) { compatible = false; } +#endif } else { -- cgit v1.2.3