diff --git a/src/bt_peer_connection.cpp b/src/bt_peer_connection.cpp index 28137db84..923ea10fa 100644 --- a/src/bt_peer_connection.cpp +++ b/src/bt_peer_connection.cpp @@ -739,7 +739,6 @@ namespace { ptr += 20; std::memcpy(ptr, m_our_peer_id.data(), 20); - ptr += 20; #ifndef TORRENT_DISABLE_LOGGING if (should_log(peer_log_alert::outgoing)) diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index ca5cd7c94..f2c000094 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -153,6 +153,7 @@ namespace libtorrent { UTF8 sequence[5]; UTF8* start = sequence; res = ConvertUTF32toUTF8(const_cast(&cp), cp + 1, &start, start + 5, lenientConversion); + TORRENT_UNUSED(res); TORRENT_ASSERT(res == conversionOK); for (int i = 0; i < std::min(5, int(start - sequence)); ++i) diff --git a/src/xml_parse.cpp b/src/xml_parse.cpp index ad24a7b20..e3262713d 100644 --- a/src/xml_parse.cpp +++ b/src/xml_parse.cpp @@ -113,7 +113,6 @@ namespace libtorrent { { start += 3; callback(xml_comment, {start, std::size_t(tag_name_end - start - 2)}, {}); - tag_end = p - 2; continue; } else