From a40fd4d49de294fd1618fbe8c6b314b74400ec08 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sat, 20 Apr 2013 14:04:00 +0000 Subject: [PATCH] Container: fix minor warning. [SVN r83984] --- include/boost/container/detail/iterators.hpp | 4 ++-- include/boost/container/vector.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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(); }