Ticket #1271: boost_unused_parameters.diff

File boost_unused_parameters.diff, 1.6 KB (added by Hans Meine <meine@…>, 15 years ago)
  • wrapper_base.hpp

    old new  
    7979      w->m_self = self;
    8080  }
    8181
    82   inline void initialize_wrapper(PyObject* self, ...) {}
     82  inline void initialize_wrapper(PyObject* /* self */, ...) {}
    8383
    8484 
    8585 
  • value_holder.hpp

    old new  
    4848#  include BOOST_PP_ITERATE()
    4949
    5050 private: // required holder implementation
    51     void* holds(type_info, bool null_ptr_only);
     51    void* holds(type_info, bool /* null_ptr_only */);
    5252   
    5353    template <class T>
    5454    inline void* holds_wrapped(type_info dst_t, wrapper<T>*,T* p)
     
    7575#  include BOOST_PP_ITERATE()
    7676
    7777private: // required holder implementation
    78     void* holds(type_info, bool null_ptr_only);
     78    void* holds(type_info, bool /* null_ptr_only */);
    7979
    8080 private: // data members
    8181    Held m_held;
     
    8484#  undef BOOST_PYTHON_UNFORWARD_LOCAL
    8585
    8686template <class Value>
    87 void* value_holder<Value>::holds(type_info dst_t, bool null_ptr_only)
     87void* value_holder<Value>::holds(type_info dst_t, bool /* null_ptr_only */)
    8888{
    8989    if (void* wrapped = holds_wrapped(dst_t, &m_held, &m_held))
    9090        return wrapped;
     
    9696
    9797template <class Value, class Held>
    9898void* value_holder_back_reference<Value,Held>::holds(
    99     type_info dst_t, bool null_ptr_only)
     99    type_info dst_t, bool /* null_ptr_only */)
    100100{
    101101    type_info src_t = python::type_id<Value>();
    102102    Value* x = &m_held;