fixed warnings and uninitialized variable
This commit is contained in:
parent
d94f35a75b
commit
a134908bac
|
@ -1471,7 +1471,7 @@ namespace libtorrent
|
|||
// ban it.
|
||||
if (m_ses.m_alerts.should_post<peer_ban_alert>())
|
||||
{
|
||||
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<socket_type> 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<int, int> const& out_ports = m_ses.settings().outgoing_ports;
|
||||
error_code ec;
|
||||
|
|
Loading…
Reference in New Issue