From 14eaec043156dca277b52652ab07d1d9222c907d Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Fri, 16 Jan 2015 18:31:38 -0500 Subject: [PATCH] Fix warnings. --- libdevcrypto/CryptoPP.cpp | 2 ++ libethereum/State.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libdevcrypto/CryptoPP.cpp b/libdevcrypto/CryptoPP.cpp index acd59184f..2d0170fb9 100644 --- a/libdevcrypto/CryptoPP.cpp +++ b/libdevcrypto/CryptoPP.cpp @@ -199,6 +199,8 @@ bool Secp256k1::verifySecret(Secret const& _s, Public& _p) void Secp256k1::agree(Secret const& _s, Public const& _r, h256& o_s) { + (void)o_s; + (void)_s; ECDH::Domain d(m_oid); assert(d.AgreedValueLength() == sizeof(o_s)); byte remote[65] = {0x04}; diff --git a/libethereum/State.h b/libethereum/State.h index 462989e4a..85abd9366 100644 --- a/libethereum/State.h +++ b/libethereum/State.h @@ -147,12 +147,12 @@ public: /// Like sync but only operate on _tq, killing the invalid/old ones. bool cull(TransactionQueue& _tq) const; - LastHashes getLastHashes(BlockChain const& _bc, unsigned _n) const; + LastHashes getLastHashes(BlockChain const& _bc, unsigned _n) const; /// Execute a given transaction. /// This will append @a _t to the transaction list and change the state accordingly. - u256 execute(BlockChain const& _bc, bytes const& _rlp, bytes* o_output = nullptr, bool _commit = true); - u256 execute(BlockChain const& _bc, bytesConstRef _rlp, bytes* o_output = nullptr, bool _commit = true); + u256 execute(BlockChain const& _bc, bytes const& _rlp, bytes* o_output = nullptr, bool _commit = true); + u256 execute(BlockChain const& _bc, bytesConstRef _rlp, bytes* o_output = nullptr, bool _commit = true); u256 execute(LastHashes const& _lh, bytes const& _rlp, bytes* o_output = nullptr, bool _commit = true) { return execute(_lh, &_rlp, o_output, _commit); } u256 execute(LastHashes const& _lh, bytesConstRef _rlp, bytes* o_output = nullptr, bool _commit = true);