diff --git a/include/boost/smart_ptr/enable_shared_from_raw.hpp b/include/boost/smart_ptr/enable_shared_from_raw.hpp index 669a649..5cd3574 100644 --- a/include/boost/smart_ptr/enable_shared_from_raw.hpp +++ b/include/boost/smart_ptr/enable_shared_from_raw.hpp @@ -104,7 +104,7 @@ private: } // Note: invoked automatically by shared_ptr; do not call - template void _internal_accept_owner( shared_ptr * ppx, Y * py ) const + template void _internal_accept_owner( shared_ptr * ppx, Y * ) const { BOOST_ASSERT( ppx != 0 ); diff --git a/include/boost/smart_ptr/intrusive_ref_counter.hpp b/include/boost/smart_ptr/intrusive_ref_counter.hpp index 82fa8bc..b7587ea 100644 --- a/include/boost/smart_ptr/intrusive_ref_counter.hpp +++ b/include/boost/smart_ptr/intrusive_ref_counter.hpp @@ -83,7 +83,7 @@ struct thread_safe_counter static unsigned int decrement(boost::detail::atomic_count& counter) BOOST_NOEXCEPT { - return --counter; + return static_cast< unsigned int >(--counter); } };