From f5dbbfd1d422e30bf9086172fbf264b66d4e5d6d Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 11 Sep 2019 13:30:56 +0300 Subject: [PATCH] some warning fixed --- contrib/epee/include/net/abstract_tcp_server2.inl | 2 +- src/currency_core/blockchain_storage.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index e0fcc3b1..4953508d 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -475,7 +475,7 @@ bool boosted_tcp_server::init_server(uint32_t port, const st } //----------------------------------------------------------------------------- PUSH_WARNINGS -DISABLE_GCC_WARNING(maybe - uninitialized) +DISABLE_GCC_WARNING(maybe-uninitialized) template bool boosted_tcp_server::init_server(const std::string port, const std::string& address) { diff --git a/src/currency_core/blockchain_storage.cpp b/src/currency_core/blockchain_storage.cpp index 13c96810..03bd7230 100644 --- a/src/currency_core/blockchain_storage.cpp +++ b/src/currency_core/blockchain_storage.cpp @@ -2714,7 +2714,6 @@ void blockchain_storage::print_db_cache_perfeormance_data() const void blockchain_storage::get_last_n_x_blocks(uint64_t n, bool pos_blocks, std::list>& blocks) const { uint64_t count = 0; - bool looking_for_a_pos = true; for (uint64_t i = m_db_blocks.size() - 1; i != 0; --i) { auto block_ptr = m_db_blocks[i];