fix some warnings
This commit is contained in:
parent
26b721973f
commit
d8065b8941
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue