From 753647b953c68aa7c86e7071ee4885acccf8732d Mon Sep 17 00:00:00 2001 From: cryptocode <34946442+cryptocode@users.noreply.github.com> Date: Mon, 19 Nov 2018 23:25:38 +0100 Subject: [PATCH] Cleanup of warnings, unused declaration, and initializations (#1384) --- rai/node/lmdb.hpp | 2 +- rai/node/testing.cpp | 4 ++-- rai/secure/ledger.hpp | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/rai/node/lmdb.hpp b/rai/node/lmdb.hpp index d72b7aa5..fe9ce365 100644 --- a/rai/node/lmdb.hpp +++ b/rai/node/lmdb.hpp @@ -80,7 +80,7 @@ public: operator MDB_val const & () const; MDB_val value; std::shared_ptr> buffer; - rai::epoch epoch; + rai::epoch epoch{ rai::epoch::unspecified }; }; class block_store; diff --git a/rai/node/testing.cpp b/rai/node/testing.cpp index 9c9b09b1..154803d6 100644 --- a/rai/node/testing.cpp +++ b/rai/node/testing.cpp @@ -43,9 +43,9 @@ work (1, nullptr) for (auto i (nodes.begin ()), j (nodes.begin () + 1), n (nodes.end ()); j != n; ++i, ++j) { auto starting1 ((*i)->peers.size ()); - auto new1 (starting1); + decltype (starting1) new1; auto starting2 ((*j)->peers.size ()); - auto new2 (starting2); + decltype (starting2) new2; (*j)->network.send_keepalive ((*i)->network.endpoint ()); do { diff --git a/rai/secure/ledger.hpp b/rai/secure/ledger.hpp index 13e253b2..6ae3b4e7 100644 --- a/rai/secure/ledger.hpp +++ b/rai/secure/ledger.hpp @@ -2,7 +2,6 @@ #include -struct MDB_txn; namespace rai { class block_store;