From d352463e8209d04615dff8cf8c03d6da655f8f83 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Mon, 3 Oct 2016 12:03:34 -0400 Subject: [PATCH] fix warnings generated by latest clang --- include/fc/exception/exception.hpp | 2 +- src/thread/thread_specific.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fc/exception/exception.hpp b/include/fc/exception/exception.hpp index 028b172..0b10632 100644 --- a/include/fc/exception/exception.hpp +++ b/include/fc/exception/exception.hpp @@ -76,7 +76,7 @@ namespace fc const std::string& what_value = "unspecified"); exception( const exception& e ); exception( exception&& e ); - ~exception(); + virtual ~exception(); const char* name()const throw(); int64_t code()const throw(); diff --git a/src/thread/thread_specific.cpp b/src/thread/thread_specific.cpp index a91236d..f04d6da 100644 --- a/src/thread/thread_specific.cpp +++ b/src/thread/thread_specific.cpp @@ -22,7 +22,7 @@ namespace fc { if (slot + 1 > specific_data->size()) specific_data->resize(slot + 1); - (*specific_data)[slot] = std::move(detail::specific_data_info(new_value, cleanup)); + (*specific_data)[slot] = detail::specific_data_info(new_value, cleanup); } void* get_thread_specific_data(unsigned slot) @@ -62,4 +62,4 @@ namespace fc } } } -} // end namespace fc \ No newline at end of file +} // end namespace fc