forked from premiere/premiere-libtorrent
fix gcc warnings
This commit is contained in:
parent
5187b4279d
commit
d80a129871
|
@ -386,7 +386,7 @@ void run_test(lt::aux::proxy_settings ps, std::string url, int expect_size, int
|
|||
TEST_EQUAL(e, error_code());
|
||||
|
||||
TEST_EQUAL(counters.size(), expect_counters.size());
|
||||
for (int i = 0; i < counters.size(); ++i)
|
||||
for (int i = 0; i < int(counters.size()); ++i)
|
||||
{
|
||||
if (counters[i] != expect_counters[i]) fprintf(stderr, "i=%d\n", i);
|
||||
TEST_EQUAL(counters[i], expect_counters[i]);
|
||||
|
|
|
@ -1636,6 +1636,7 @@ typedef struct _FILE_ALLOCATED_RANGE_BUFFER {
|
|||
}
|
||||
}
|
||||
|
||||
#if !TORRENT_USE_PREADV
|
||||
bool coalesce_read_buffers(file::iovec_t const*& bufs, int& num_bufs, file::iovec_t* tmp)
|
||||
{
|
||||
int buf_size = bufs_size(bufs, num_bufs);
|
||||
|
@ -1672,6 +1673,7 @@ typedef struct _FILE_ALLOCATED_RANGE_BUFFER {
|
|||
num_bufs = 1;
|
||||
return true;
|
||||
}
|
||||
#endif // TORRENT_USE_PREADV
|
||||
|
||||
template <class Fun>
|
||||
boost::int64_t iov(Fun f, handle_type fd, boost::int64_t file_offset, file::iovec_t const* bufs_in
|
||||
|
|
Loading…
Reference in New Issue