fixed unused variable warnings

This commit is contained in:
Arvid Norberg 2013-12-31 23:18:10 +00:00
parent 53a62344ca
commit 0fc9eb6410
3 changed files with 3 additions and 6 deletions

View File

@ -335,7 +335,7 @@ namespace libtorrent
virtual void add_handshake(entry&) {} virtual void add_handshake(entry&) {}
// called when the peer is being disconnected. // 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 // called when the peer is successfully connected. Note that
// incoming connections will have been connected by the time // incoming connections will have been connected by the time
@ -383,7 +383,7 @@ namespace libtorrent
// called when libtorrent think this peer should be disconnected. // called when libtorrent think this peer should be disconnected.
// if the plugin returns false, the peer will not 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, // called when an extended message is received. If returning true,
// the message is not processed by any other plugin and if false // the message is not processed by any other plugin and if false

View File

@ -47,9 +47,6 @@ namespace libtorrent
intrusive_ptr_base(intrusive_ptr_base<T> const&) intrusive_ptr_base(intrusive_ptr_base<T> const&)
: m_refs(0) {} : 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) friend void intrusive_ptr_add_ref(intrusive_ptr_base<T> const* s)
{ {
TORRENT_ASSERT(s != 0); TORRENT_ASSERT(s != 0);

View File

@ -486,7 +486,7 @@ namespace libtorrent
bool release_files() { return false; } bool release_files() { return false; }
bool delete_files() { return false; } bool delete_files() { return false; }
bool initialize(bool) { 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 read(char*, int, int, int size) { return size; }
int write(char const*, int, int, int size) { return size; } int write(char const*, int, int, int size) { return size; }
size_type physical_offset(int, int) { return 0; } size_type physical_offset(int, int) { return 0; }