diff --git a/include/libtorrent/kademlia/io.hpp b/include/libtorrent/kademlia/io.hpp index c9fda54d3..3cd075582 100644 --- a/include/libtorrent/kademlia/io.hpp +++ b/include/libtorrent/kademlia/io.hpp @@ -47,6 +47,9 @@ namespace libtorrent { namespace dht { template node_endpoint read_node_endpoint(udp protocol, InIt&& in) { +#if !TORRENT_USE_IPV6 + TORRENT_UNUSED(protocol); +#endif node_endpoint ep; std::copy(in, in + 20, ep.id.begin()); in += 20; diff --git a/src/kademlia/rpc_manager.cpp b/src/kademlia/rpc_manager.cpp index ba49b4956..a6ae16252 100644 --- a/src/kademlia/rpc_manager.cpp +++ b/src/kademlia/rpc_manager.cpp @@ -160,7 +160,11 @@ rpc_manager::rpc_manager(node_id const& our_id , m_our_id(our_id) , m_allocated_observers(0) , m_destructing(false) -{} +{ +#ifdef TORRENT_DISABLE_LOGGING + TORRENT_UNUSED(log); +#endif +} rpc_manager::~rpc_manager() {