disable warning for unused command line argument and fix warnings. remove redundant travis build config. use new preprocessor on clang to avoid warnings

This commit is contained in:
arvidn
2015-09-02 01:30:40 -04:00
parent b45c585a78
commit 17c5759829
50 changed files with 347 additions and 192 deletions

View File

@@ -232,7 +232,7 @@ namespace libtorrent { namespace
}
#endif
#if TORRENT_USE_SYSCTL
#if TORRENT_USE_SYSCTL && !defined TORRENT_BUILD_SIMULATOR
#ifdef TORRENT_OS2
int _System __libsocket_sysctl(int* mib, u_int namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen);
#endif
@@ -285,7 +285,7 @@ int _System __libsocket_sysctl(int* mib, u_int namelen, void *oldp, size_t *oldl
}
#endif
#if TORRENT_USE_IFADDRS
#if TORRENT_USE_IFADDRS && !defined TORRENT_BUILD_SIMULATOR
bool iface_from_ifaddrs(ifaddrs *ifa, ip_interface &rv)
{
int family = ifa->ifa_addr->sa_family;