Ticket #9897: 0004-ptr_container-suppress-GCC-Wunused-parameter-warning.patch

File 0004-ptr_container-suppress-GCC-Wunused-parameter-warning.patch, 1.9 KB (added by mstahl@…, 9 years ago)
  • include/boost/ptr_container/detail/reversible_ptr_container.hpp

    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  
    259259
    260260        static void enforce_null_policy( const Ty_* x, const char* msg )
    261261        {
     262#ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
     263            (void)x;
     264            (void)msg;
     265#endif
    262266            if( !allow_null )
    263267            {
    264268                BOOST_PTR_CONTAINER_THROW_EXCEPTION( 0 == x && "null not allowed",
  • include/boost/ptr_container/ptr_sequence_adapter.hpp

    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  
    671671        void range_check_impl( iterator first, iterator last,
    672672                               std::random_access_iterator_tag )
    673673        {
     674            (void)first; (void)last;
    674675            BOOST_ASSERT( first <= last && "out of range unique()/erase_if()" );
    675676            BOOST_ASSERT( this->begin() <= first && "out of range unique()/erase_if()" );
    676677            BOOST_ASSERT( last <= this->end() && "out of range unique()/erase_if)(" );