From 88525858eefc77ec50627f1db06a50666bc3e292 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Mon, 14 Apr 2014 12:22:16 +0200
Subject: [PATCH 4/4] ptr_container: suppress GCC -Wunused-parameter warnings
Signed-off-by: Michael Stahl <mstahl@redhat.com>
---
include/boost/ptr_container/detail/reversible_ptr_container.hpp | 4 ++++
include/boost/ptr_container/ptr_sequence_adapter.hpp | 1 +
2 files changed, 5 insertions(+)
diff --git a/include/boost/ptr_container/detail/reversible_ptr_container.hpp b/include/boost/ptr_container/detail/reversible_ptr_container.hpp
index bb0eb0e..007fe04 100644
a
|
b
|
namespace ptr_container_detail
|
259 | 259 | |
260 | 260 | static void enforce_null_policy( const Ty_* x, const char* msg ) |
261 | 261 | { |
| 262 | #ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS |
| 263 | (void)x; |
| 264 | (void)msg; |
| 265 | #endif |
262 | 266 | if( !allow_null ) |
263 | 267 | { |
264 | 268 | BOOST_PTR_CONTAINER_THROW_EXCEPTION( 0 == x && "null not allowed", |
diff --git a/include/boost/ptr_container/ptr_sequence_adapter.hpp b/include/boost/ptr_container/ptr_sequence_adapter.hpp
index 1d44ae5..c097a97 100644
a
|
b
|
namespace ptr_container_detail
|
671 | 671 | void range_check_impl( iterator first, iterator last, |
672 | 672 | std::random_access_iterator_tag ) |
673 | 673 | { |
| 674 | (void)first; (void)last; |
674 | 675 | BOOST_ASSERT( first <= last && "out of range unique()/erase_if()" ); |
675 | 676 | BOOST_ASSERT( this->begin() <= first && "out of range unique()/erase_if()" ); |
676 | 677 | BOOST_ASSERT( last <= this->end() && "out of range unique()/erase_if)(" ); |