fixed unused variable warnings
This commit is contained in:
parent
53a62344ca
commit
0fc9eb6410
|
@ -335,7 +335,7 @@ namespace libtorrent
|
|||
virtual void add_handshake(entry&) {}
|
||||
|
||||
// called when the peer is being disconnected.
|
||||
virtual void on_disconnect(error_code const& ec) {}
|
||||
virtual void on_disconnect(error_code const& /*ec*/) {}
|
||||
|
||||
// called when the peer is successfully connected. Note that
|
||||
// incoming connections will have been connected by the time
|
||||
|
@ -383,7 +383,7 @@ namespace libtorrent
|
|||
|
||||
// called when libtorrent think this peer should be disconnected.
|
||||
// if the plugin returns false, the peer will not be disconnected.
|
||||
virtual bool can_disconnect(error_code const& ec) { return true; }
|
||||
virtual bool can_disconnect(error_code const& /*ec*/) { return true; }
|
||||
|
||||
// called when an extended message is received. If returning true,
|
||||
// the message is not processed by any other plugin and if false
|
||||
|
|
|
@ -47,9 +47,6 @@ namespace libtorrent
|
|||
intrusive_ptr_base(intrusive_ptr_base<T> const&)
|
||||
: m_refs(0) {}
|
||||
|
||||
intrusive_ptr_base& operator=(intrusive_ptr_base const& rhs)
|
||||
{ return *this; }
|
||||
|
||||
friend void intrusive_ptr_add_ref(intrusive_ptr_base<T> const* s)
|
||||
{
|
||||
TORRENT_ASSERT(s != 0);
|
||||
|
|
|
@ -486,7 +486,7 @@ namespace libtorrent
|
|||
bool release_files() { return false; }
|
||||
bool delete_files() { return false; }
|
||||
bool initialize(bool) { return false; }
|
||||
int move_storage(std::string const&, int flags) { return 0; }
|
||||
int move_storage(std::string const&, int) { return 0; }
|
||||
int read(char*, int, int, int size) { return size; }
|
||||
int write(char const*, int, int, int size) { return size; }
|
||||
size_type physical_offset(int, int) { return 0; }
|
||||
|
|
Loading…
Reference in New Issue