Fixing some unused variable warnings. (#2285)
* Fixing some unused variable warnings. * Adding missing line.
This commit is contained in:
parent
fc286e6e2c
commit
cc5f9b87d6
5 changed files with 3 additions and 6 deletions
|
@ -1431,7 +1431,6 @@ TEST (mdb_block_store, sideband_height)
|
|||
TEST (block_store, peers)
|
||||
{
|
||||
nano::logger_mt logger;
|
||||
auto init (false);
|
||||
auto store = nano::make_store (logger, nano::unique_path ());
|
||||
ASSERT_TRUE (!store->init_error ());
|
||||
|
||||
|
@ -1559,7 +1558,6 @@ TEST (mdb_block_store, upgrade_v13_v14)
|
|||
{
|
||||
nano::logger_mt logger;
|
||||
nano::genesis genesis;
|
||||
auto error (false);
|
||||
nano::mdb_store store (logger, path);
|
||||
auto transaction (store.tx_begin_write ());
|
||||
nano::rep_weights rep_weights;
|
||||
|
@ -1613,7 +1611,6 @@ TEST (mdb_block_store, upgrade_v14_v15)
|
|||
{
|
||||
nano::logger_mt logger;
|
||||
nano::genesis genesis;
|
||||
auto error (false);
|
||||
nano::mdb_store store (logger, path);
|
||||
auto transaction (store.tx_begin_write ());
|
||||
nano::rep_weights rep_weights;
|
||||
|
@ -1710,7 +1707,6 @@ TEST (block_store, confirmation_height)
|
|||
{
|
||||
auto path (nano::unique_path ());
|
||||
nano::logger_mt logger;
|
||||
auto error (false);
|
||||
nano::mdb_store store (logger, path);
|
||||
|
||||
nano::account account1 (0);
|
||||
|
@ -1853,6 +1849,7 @@ TEST (block_store, rocksdb_force_test_env_variable)
|
|||
// Set environment variable
|
||||
constexpr auto env_var = "TEST_USE_ROCKSDB";
|
||||
auto value = std::getenv (env_var);
|
||||
(void)value;
|
||||
|
||||
auto store = nano::make_store (logger, nano::unique_path ());
|
||||
|
||||
|
|
|
@ -1164,6 +1164,7 @@ TEST (wallet, work_watcher_removed)
|
|||
nano::node_config node_config (24000, system.logging);
|
||||
node_config.work_watcher_period = 1s;
|
||||
auto & node = *system.add_node (node_config);
|
||||
(void)node;
|
||||
auto & wallet (*system.wallet (0));
|
||||
wallet.insert_adhoc (nano::test_genesis_key.prv);
|
||||
nano::keypair key;
|
||||
|
|
|
@ -3853,6 +3853,7 @@ void nano::json_handler::version ()
|
|||
void nano::json_handler::validate_account_number ()
|
||||
{
|
||||
auto account (account_impl ());
|
||||
(void)account;
|
||||
response_l.put ("valid", ec ? "0" : "1");
|
||||
ec = std::error_code (); // error is just invalid account
|
||||
response_errors ();
|
||||
|
|
|
@ -183,7 +183,6 @@ void nano::rep_crawler::on_rep_request (std::shared_ptr<nano::transport::channel
|
|||
{
|
||||
nano::lock_guard<std::mutex> lock (probable_reps_mutex);
|
||||
|
||||
using probable_rep_itr_t = probably_rep_t::index<tag_channel_ref>::type::iterator;
|
||||
probably_rep_t::index<tag_channel_ref>::type & channel_ref_index = probable_reps.get<tag_channel_ref> ();
|
||||
|
||||
// Find and update the timestamp on all reps available on the endpoint (a single host may have multiple reps)
|
||||
|
|
|
@ -1429,7 +1429,6 @@ void nano::work_watcher::watching (nano::qualified_root const & root_a, std::sha
|
|||
if (watcher_l->watched.find (root_a) != watcher_l->watched.end ()) // not yet confirmed or cancelled
|
||||
{
|
||||
lock.unlock ();
|
||||
bool updated_l{ false };
|
||||
uint64_t difficulty (0);
|
||||
auto root_l (block_a->root ());
|
||||
nano::work_validate (root_l, block_a->block_work (), &difficulty);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue