Ticket #1271: boost_unused_parameters.diff
File boost_unused_parameters.diff, 1.6 KB (added by , 15 years ago) |
---|
-
wrapper_base.hpp
old new 79 79 w->m_self = self; 80 80 } 81 81 82 inline void initialize_wrapper(PyObject* self, ...) {}82 inline void initialize_wrapper(PyObject* /* self */, ...) {} 83 83 84 84 85 85 -
value_holder.hpp
old new 48 48 # include BOOST_PP_ITERATE() 49 49 50 50 private: // required holder implementation 51 void* holds(type_info, bool null_ptr_only);51 void* holds(type_info, bool /* null_ptr_only */); 52 52 53 53 template <class T> 54 54 inline void* holds_wrapped(type_info dst_t, wrapper<T>*,T* p) … … 75 75 # include BOOST_PP_ITERATE() 76 76 77 77 private: // required holder implementation 78 void* holds(type_info, bool null_ptr_only);78 void* holds(type_info, bool /* null_ptr_only */); 79 79 80 80 private: // data members 81 81 Held m_held; … … 84 84 # undef BOOST_PYTHON_UNFORWARD_LOCAL 85 85 86 86 template <class Value> 87 void* value_holder<Value>::holds(type_info dst_t, bool null_ptr_only)87 void* value_holder<Value>::holds(type_info dst_t, bool /* null_ptr_only */) 88 88 { 89 89 if (void* wrapped = holds_wrapped(dst_t, &m_held, &m_held)) 90 90 return wrapped; … … 96 96 97 97 template <class Value, class Held> 98 98 void* 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 */) 100 100 { 101 101 type_info src_t = python::type_id<Value>(); 102 102 Value* x = &m_held;