diff --git a/libdevcore/RLP.h b/libdevcore/RLP.h index 7d223f73a..248a2e645 100644 --- a/libdevcore/RLP.h +++ b/libdevcore/RLP.h @@ -289,7 +289,7 @@ public: private: /// Disable construction from rvalue - explicit RLP(bytes const&& _d) {} + explicit RLP(bytes const&&) {} /// Single-byte data payload. bool isSingleByte() const { return !isNull() && m_data[0] < c_rlpDataImmLenStart; } diff --git a/third/MainWin.cpp b/third/MainWin.cpp index 10f07ef6a..f86dc0434 100644 --- a/third/MainWin.cpp +++ b/third/MainWin.cpp @@ -84,9 +84,10 @@ Main::Main(QWidget *parent) : ui->setupUi(this); cerr << "State root: " << BlockChain::genesis().stateRoot << endl; - cerr << "Block Hash: " << sha3(BlockChain::createGenesisBlock()) << endl; - cerr << "Block RLP: " << RLP(BlockChain::createGenesisBlock()) << endl; - cerr << "Block Hex: " << toHex(BlockChain::createGenesisBlock()) << endl; + auto gb = BlockChain::createGenesisBlock(); + cerr << "Block Hash: " << sha3(gb) << endl; + cerr << "Block RLP: " << RLP(gb) << endl; + cerr << "Block Hex: " << toHex(gb) << endl; cerr << "Network protocol version: " << dev::eth::c_protocolVersion << endl; cerr << "Client database version: " << dev::eth::c_databaseVersion << endl;