fix warnings
This commit is contained in:
parent
09bc1550e9
commit
5666cdcd07
|
@ -103,7 +103,7 @@ namespace libtorrent
|
|||
, int(pe->read_jobs.size()), int(pe->jobs.size()));
|
||||
for (int i = 0; i < pe->piece_log.size(); ++i)
|
||||
{
|
||||
assert_print(", %s (%d)" + (i==0), job_name(pe->piece_log[i].job), pe->piece_log[i].block);
|
||||
assert_print(&", %s (%d)"[i==0], job_name(pe->piece_log[i].job), pe->piece_log[i].block);
|
||||
}
|
||||
}
|
||||
assert_print("\n");
|
||||
|
@ -143,13 +143,6 @@ namespace libtorrent
|
|||
#endif
|
||||
}
|
||||
|
||||
// this is posted to the network thread and run from there
|
||||
static void alert_callback(alert_dispatcher* disp, alert* a)
|
||||
{
|
||||
if (disp && disp->post_alert(a)) return;
|
||||
delete a;
|
||||
}
|
||||
|
||||
static int file_flags_for_job(disk_io_job* j)
|
||||
{
|
||||
int ret = 0;
|
||||
|
|
|
@ -384,9 +384,9 @@ namespace libtorrent
|
|||
return;
|
||||
}
|
||||
|
||||
#if defined TORRENT_LOGGING
|
||||
tcp::endpoint bound_ip = m_ses.bind_outgoing_socket(*m_socket
|
||||
, m_remote.address(), ec);
|
||||
#if defined TORRENT_LOGGING
|
||||
peer_log(">>> BIND [ dst: %s ec: %s ]", print_endpoint(bound_ip).c_str()
|
||||
, ec.message().c_str());
|
||||
#endif
|
||||
|
@ -6010,7 +6010,10 @@ namespace libtorrent
|
|||
#if defined TORRENT_ASIO_DEBUGGING
|
||||
complete_async("peer_connection::on_connection_complete");
|
||||
#endif
|
||||
|
||||
#if defined TORRENT_LOGGING || defined TORRENT_USE_OPENSSL
|
||||
ptime completed = time_now_hires();
|
||||
#endif
|
||||
|
||||
INVARIANT_CHECK;
|
||||
|
||||
|
|
|
@ -118,7 +118,10 @@ void nop() {}
|
|||
wj.storage = pm; \
|
||||
cached_piece_entry* pe = NULL; \
|
||||
int ret = 0; \
|
||||
file::iovec_t iov[1]
|
||||
file::iovec_t iov[1]; \
|
||||
(void)iov[0]; \
|
||||
(void)ret; \
|
||||
(void)pe
|
||||
|
||||
#define WRITE_BLOCK(p, b) \
|
||||
wj.flags = disk_io_job::in_progress; \
|
||||
|
|
|
@ -51,7 +51,6 @@ using namespace libtorrent;
|
|||
namespace lt = libtorrent;
|
||||
|
||||
const int piece_size = 16 * 1024 * 16;
|
||||
const int block_size = 16 * 1024;
|
||||
|
||||
const int half = piece_size / 2;
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ int test_main()
|
|||
{
|
||||
|
||||
file_storage fs;
|
||||
int total_size = 100 * 0x4000;
|
||||
|
||||
fs.add_file("test/temporary.txt", 0x4000);
|
||||
fs.add_file("test/A/tmp", 0x4000);
|
||||
|
|
Loading…
Reference in New Issue