diff --git a/include/boost/container/detail/iterators.hpp b/include/boost/container/detail/iterators.hpp index f58c4ce..bba7205 100644 --- a/include/boost/container/detail/iterators.hpp +++ b/include/boost/container/detail/iterators.hpp @@ -114,7 +114,7 @@ class constant_iterator const T& operator*() const { return dereference(); } - const T& operator[] (Difference n) const + const T& operator[] (Difference ) const { return dereference(); } const T* operator->() const @@ -335,7 +335,7 @@ class repeat_iterator T& operator*() const { return dereference(); } - T& operator[] (Difference n) const + T& operator[] (Difference ) const { return dereference(); } T *operator->() const diff --git a/include/boost/container/vector.hpp b/include/boost/container/vector.hpp index 06d2c3f..dac536a 100644 --- a/include/boost/container/vector.hpp +++ b/include/boost/container/vector.hpp @@ -530,7 +530,7 @@ struct vector_alloc_holderpriv_swap_members_impl(x); } - void move_from_empty(vector_alloc_holder &x) + void move_from_empty(vector_alloc_holder &) { //Containers with version 0 allocators can't be moved without move elements one by one throw_bad_alloc(); }