merged silencing of warnings from RC_0_16

This commit is contained in:
Arvid Norberg
2013-06-14 16:41:47 +00:00
parent f91d83434b
commit 50ecb07d19
11 changed files with 33 additions and 16 deletions

View File

@@ -490,8 +490,10 @@ namespace libtorrent
detail::write_int32(m_transaction_id, out); // transaction_id
// info_hash
std::copy(tracker_req().info_hash.begin(), tracker_req().info_hash.end(), out);
#if defined TORRENT_DEBUG || TORRENT_RELEASE_ASSERTS
out += 20;
TORRENT_ASSERT(out - buf == sizeof(buf));
#endif
error_code ec;
if (!m_hostname.empty())