fix various build options

This commit is contained in:
Andrei Kurushin 2017-01-07 15:19:26 +03:00 committed by Arvid Norberg
parent 2ed4bee1cb
commit 78bacfe7c1
2 changed files with 8 additions and 1 deletions

View File

@ -47,6 +47,9 @@ namespace libtorrent { namespace dht {
template<class InIt> template<class InIt>
node_endpoint read_node_endpoint(udp protocol, InIt&& in) node_endpoint read_node_endpoint(udp protocol, InIt&& in)
{ {
#if !TORRENT_USE_IPV6
TORRENT_UNUSED(protocol);
#endif
node_endpoint ep; node_endpoint ep;
std::copy(in, in + 20, ep.id.begin()); std::copy(in, in + 20, ep.id.begin());
in += 20; in += 20;

View File

@ -160,7 +160,11 @@ rpc_manager::rpc_manager(node_id const& our_id
, m_our_id(our_id) , m_our_id(our_id)
, m_allocated_observers(0) , m_allocated_observers(0)
, m_destructing(false) , m_destructing(false)
{} {
#ifdef TORRENT_DISABLE_LOGGING
TORRENT_UNUSED(log);
#endif
}
rpc_manager::~rpc_manager() rpc_manager::~rpc_manager()
{ {