Cleanup of warnings, unused declaration, and initializations (#1384)

This commit is contained in:
cryptocode 2018-11-19 23:25:38 +01:00 committed by Roy Keene
commit 753647b953
3 changed files with 3 additions and 4 deletions

View file

@ -80,7 +80,7 @@ public:
operator MDB_val const & () const;
MDB_val value;
std::shared_ptr<std::vector<uint8_t>> buffer;
rai::epoch epoch;
rai::epoch epoch{ rai::epoch::unspecified };
};
class block_store;

View file

@ -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
{

View file

@ -2,7 +2,6 @@
#include <rai/secure/common.hpp>
struct MDB_txn;
namespace rai
{
class block_store;