From 6e08bcf48e0778fe2283d843d539e6153e5c6699 Mon Sep 17 00:00:00 2001 From: Franz Detro Date: Mon, 11 Feb 2013 12:30:21 +0100 Subject: [PATCH] fix warnings in boost circular_buffer --- boost/circular_buffer/base.hpp | 2 +- boost/circular_buffer/space_optimized.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boost/circular_buffer/base.hpp b/boost/circular_buffer/base.hpp index 3b9886a..4893cb2 100644 --- a/boost/circular_buffer/base.hpp +++ b/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/boost/circular_buffer/space_optimized.hpp b/boost/circular_buffer/space_optimized.hpp index 9c76afe..5350676 100644 --- a/boost/circular_buffer/space_optimized.hpp +++ b/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(); } -- 1.7.11.1