diff --git a/include/boost/circular_buffer/base.hpp b/include/boost/circular_buffer/base.hpp index 3b9886a..4893cb2 100644 --- a/include/boost/circular_buffer/base.hpp +++ b/include/boost/circular_buffer/base.hpp @@ -2316,7 +2316,7 @@ private: } //! Specialized method for swapping the allocator. - void swap_allocator(circular_buffer& cb, const true_type&) { + void swap_allocator(circular_buffer&, const true_type&) { // Swap is not needed because allocators have no state. } diff --git a/include/boost/circular_buffer/space_optimized.hpp b/include/boost/circular_buffer/space_optimized.hpp index 9c76afe..5350676 100644 --- a/include/boost/circular_buffer/space_optimized.hpp +++ b/include/boost/circular_buffer/space_optimized.hpp @@ -1300,7 +1300,7 @@ private: //! Specialized method for determining the initial capacity. template - static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType item, + static size_type init_capacity(const capacity_type& capacity_ctrl, IntegralType n, IntegralType, const true_type&) { return init_capacity(capacity_ctrl, static_cast(n)); } @@ -1320,7 +1320,7 @@ private: //! Specialized method for determining the initial capacity. template - static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator first, InputIterator last, + static size_type init_capacity(const capacity_type& capacity_ctrl, InputIterator, InputIterator, const std::input_iterator_tag&) { return capacity_ctrl.capacity(); }