From 78bacfe7c1707749f09ab4fa45ae98301f84f103 Mon Sep 17 00:00:00 2001 From: Andrei Kurushin Date: Sat, 7 Jan 2017 15:19:26 +0300 Subject: [PATCH] fix various build options --- include/libtorrent/kademlia/io.hpp | 3 +++ src/kademlia/rpc_manager.cpp | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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() {