diff --git a/src/torrent.cpp b/src/torrent.cpp index a5e394c8c..67cbcfd13 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1471,7 +1471,7 @@ namespace libtorrent // ban it. if (m_ses.m_alerts.should_post()) { - peer_id pid; + peer_id pid(0); if (p->connection) pid = p->connection->pid(); m_ses.m_alerts.post_alert(peer_ban_alert( get_handle(), p->ip(), pid)); @@ -2261,6 +2261,7 @@ namespace libtorrent if (!s) return; bool ret = instantiate_connection(m_ses.m_io_service, m_ses.web_seed_proxy(), *s); + (void)ret; TORRENT_ASSERT(ret); if (m_ses.web_seed_proxy().type == proxy_settings::http @@ -2775,6 +2776,7 @@ namespace libtorrent boost::shared_ptr s(new socket_type(m_ses.m_io_service)); bool ret = instantiate_connection(m_ses.m_io_service, m_ses.peer_proxy(), *s); + (void)ret; TORRENT_ASSERT(ret); std::pair const& out_ports = m_ses.settings().outgoing_ports; error_code ec;