From 8506f9350710db6276e7a28b90b960a6f466d722 Mon Sep 17 00:00:00 2001 From: arvidn Date: Wed, 10 Apr 2019 12:01:18 +0200 Subject: [PATCH] fix more warnings --- include/libtorrent/kademlia/node.hpp | 2 ++ src/torrent.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/libtorrent/kademlia/node.hpp b/include/libtorrent/kademlia/node.hpp index bd41b3454..7db7c2dd4 100644 --- a/include/libtorrent/kademlia/node.hpp +++ b/include/libtorrent/kademlia/node.hpp @@ -101,6 +101,8 @@ public: node(node const&) = delete; node& operator=(node const&) = delete; + node(node&&) = default; + node& operator=(node&&) = default; void update_node_id(); diff --git a/src/torrent.cpp b/src/torrent.cpp index 70e1ed21f..b0ac63b97 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -7129,7 +7129,7 @@ bool is_downloading_state(int const st) #ifndef TORRENT_DISABLE_LOGGING char const* list_name(torrent_list_index_t const idx) { -#define TORRENT_LIST_NAME(n) case static_cast(aux::session_interface:: n): return #n; +#define TORRENT_LIST_NAME(n) case static_cast(aux::session_interface:: n): return #n switch (static_cast(idx)) { TORRENT_LIST_NAME(torrent_state_updates);