diff --git a/src/common/ntp.cpp b/src/common/ntp.cpp index 84b40f8d..fdbc2a5b 100644 --- a/src/common/ntp.cpp +++ b/src/common/ntp.cpp @@ -201,7 +201,7 @@ namespace tools udp_blocking_client ubc(sender_endpoint, socket, io_service); boost::system::error_code ec; - size_t len = ubc.receive(boost::asio::buffer(&packet_received, sizeof packet_received), boost::posix_time::seconds(static_cast(timeout_sec)), ec); + ubc.receive(boost::asio::buffer(&packet_received, sizeof packet_received), boost::posix_time::seconds(static_cast(timeout_sec)), ec); if (ec) { LOG_PRINT_L3("NTP: get_ntp_time(" << host_name << "): boost error: " << ec.message()); diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index f48d7478..b196fbee 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -3027,7 +3027,6 @@ bool blockchain_storage::get_est_height_from_date(uint64_t date, uint64_t& res_h //goal is to get timestamp in window in between 1day+1hour and 1 hour before target(1 hour is just to be sure that //we didn't miss actual wallet start because of timestamp and difficulty fluctuations) uint64_t low_boundary = date - 90000; //1 day + 1 hour - uint64_t aim = date - 46800; uint64_t high_boundary = date - 3600; //1 hour //std::cout << "ENTRY: low_boundary(minutes):" << low_boundary/60 << " high_boundary(minutes): " << high_boundary / 60 << std::endl; @@ -3043,7 +3042,6 @@ bool blockchain_storage::get_est_height_from_date(uint64_t date, uint64_t& res_h LOG_ERROR("Internal error: too much iterations on get_est_height_from_date, date = " << date); return true; } - uint64_t correction = 0; uint64_t ts = m_db_blocks[calculated_estimated_height]->bl.timestamp; if (ts > high_boundary) { diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index 316019f1..12f87f71 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -401,7 +401,7 @@ namespace plain_wallet { GET_INSTANCE_PTR(inst_ptr); epee::json_rpc::response, epee::json_rpc::dummy_error> ok_response = AUTO_VAL_INIT(ok_response); - bool r = inst_ptr->gwm.get_opened_wallets(ok_response.result); + inst_ptr->gwm.get_opened_wallets(ok_response.result); return epee::serialization::store_t_to_json(ok_response); } diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 9b3909b6..93070875 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -266,7 +266,7 @@ void wallet2::process_new_transaction(const currency::transaction& tx, uint64_t const currency::txin_to_key& intk = boost::get(in); // check if this input spends our output - transfer_details* p_td = nullptr; + //transfer_details* p_td = nullptr; uint64_t tid = UINT64_MAX; if (is_auditable() && is_watch_only())