Skip to content

Commit 924734e

Browse files
committed
Suppress unused parameter warnings
1 parent 4fc3afa commit 924734e

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

include/boost/python/detail/defaults_def.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace detail
8989
NameSpaceT& name_space
9090
, char const* name
9191
, Func f
92-
, keyword_range const& kw // ignored
92+
, keyword_range const&
9393
, CallPolicies const& policies
9494
, char const* doc
9595
, module*

include/boost/python/numpy/ndarray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ndarray from_data_impl(void * data,
176176
Container strides,
177177
object const & owner,
178178
bool writeable,
179-
typename boost::enable_if< boost::python::detail::is_integral<typename Container::value_type> >::type * enabled = NULL)
179+
typename boost::enable_if< boost::python::detail::is_integral<typename Container::value_type> >::type * = NULL)
180180
{
181181
std::vector<Py_intptr_t> shape_(shape.begin(),shape.end());
182182
std::vector<Py_intptr_t> strides_(strides.begin(), strides.end());

src/object/function.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <boost/python/detail/none.hpp>
2222
#include <boost/mpl/vector/vector10.hpp>
2323

24+
#include <boost/core/ignore_unused.hpp>
2425
#include <boost/bind/bind.hpp>
2526

2627
#include <algorithm>
@@ -628,6 +629,7 @@ extern "C"
628629
function_descr_get(PyObject *func, PyObject *obj, PyObject *type_)
629630
{
630631
#if PY_VERSION_HEX >= 0x03000000
632+
boost::ignore_unused(type_);
631633
// The implement is different in Python 3 because of the removal of unbound method
632634
if (obj == Py_None || obj == NULL) {
633635
Py_INCREF(func);

src/object/function_doc_signature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace boost { namespace python { namespace objects {
105105
return res;
106106
}
107107

108-
str function_doc_signature_generator::raw_function_pretty_signature(function const *f, size_t n_overloads, bool cpp_types )
108+
str function_doc_signature_generator::raw_function_pretty_signature(function const *f, size_t /*n_overloads*/, bool /*cpp_types*/ )
109109
{
110110
str res("object");
111111

0 commit comments

Comments
 (0)