fix some warnings

This commit is contained in:
arvidn 2015-08-21 14:03:16 +02:00
parent 26b721973f
commit d8065b8941
2 changed files with 7 additions and 0 deletions

View File

@ -147,6 +147,9 @@ my-python-extension py_libtorrent
src/error_code.cpp
: # requirements
<include>src
<toolset>gcc:<cxxflags>-Wno-deprecated-declarations
<toolset>darwin:<cxxflags>-Wno-deprecated-declarations
<toolset>darwin:<cxxflags>-Wno-deprecated-declarations
<conditional>@libtorrent_linking
: # usage-requirements
<conditional>@libtorrent_linking

View File

@ -416,6 +416,8 @@ namespace libtorrent
std::vector<ip_interface> ret;
#if defined TORRENT_BUILD_SIMULATOR
TORRENT_UNUSED(ec);
ip_interface wan;
wan.interface_address = ios.get_ip();
wan.netmask = address_v4::from_string("255.255.255.255");
@ -704,6 +706,8 @@ namespace libtorrent
#ifdef TORRENT_BUILD_SIMULATOR
TORRENT_UNUSED(ec);
ip_route r;
r.destination = address_v4();
r.netmask = address_v4::from_string("255.255.255.0");