fix more warnings

This commit is contained in:
arvidn 2019-04-10 12:01:18 +02:00 committed by Arvid Norberg
parent a845afe6d9
commit 8506f93507
2 changed files with 3 additions and 1 deletions

View File

@ -101,6 +101,8 @@ public:
node(node const&) = delete; node(node const&) = delete;
node& operator=(node const&) = delete; node& operator=(node const&) = delete;
node(node&&) = default;
node& operator=(node&&) = default;
void update_node_id(); void update_node_id();

View File

@ -7129,7 +7129,7 @@ bool is_downloading_state(int const st)
#ifndef TORRENT_DISABLE_LOGGING #ifndef TORRENT_DISABLE_LOGGING
char const* list_name(torrent_list_index_t const idx) char const* list_name(torrent_list_index_t const idx)
{ {
#define TORRENT_LIST_NAME(n) case static_cast<int>(aux::session_interface:: n): return #n; #define TORRENT_LIST_NAME(n) case static_cast<int>(aux::session_interface:: n): return #n
switch (static_cast<int>(idx)) switch (static_cast<int>(idx))
{ {
TORRENT_LIST_NAME(torrent_state_updates); TORRENT_LIST_NAME(torrent_state_updates);