mirror of
https://github.com/boostorg/python.git
synced 2026-01-27 07:02:15 +00:00
avoid g++ -Wall -W "unused parameter" warnings
[SVN r32371]
This commit is contained in:
@@ -21,7 +21,7 @@ namespace detail
|
||||
inline PyObject* get_owner(wrapper_base const volatile& w);
|
||||
|
||||
inline PyObject*
|
||||
owner_impl(void const volatile* x, mpl::false_)
|
||||
owner_impl(void const volatile* /*x*/, mpl::false_)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -54,8 +54,8 @@ namespace detail {
|
||||
register_(
|
||||
Class_& cl,
|
||||
tuple (*getinitargs_fn)(Tgetinitargs),
|
||||
inaccessible* (*getstate_fn)(),
|
||||
inaccessible* (*setstate_fn)(),
|
||||
inaccessible* (* /*getstate_fn*/)(),
|
||||
inaccessible* (* /*setstate_fn*/)(),
|
||||
bool)
|
||||
{
|
||||
cl.enable_pickling_(false);
|
||||
@@ -69,7 +69,7 @@ namespace detail {
|
||||
void
|
||||
register_(
|
||||
Class_& cl,
|
||||
inaccessible* (*getinitargs_fn)(),
|
||||
inaccessible* (* /*getinitargs_fn*/)(),
|
||||
Rgetstate (*getstate_fn)(Tgetstate),
|
||||
void (*setstate_fn)(Tsetstate, Ttuple),
|
||||
bool getstate_manages_dict)
|
||||
|
||||
@@ -490,20 +490,20 @@ namespace boost { namespace python { namespace detail {
|
||||
|
||||
static void
|
||||
base_replace_indexes(
|
||||
Container& container, Index from,
|
||||
Index to, Index n)
|
||||
Container& /*container*/, Index /*from*/,
|
||||
Index /*to*/, Index /*n*/)
|
||||
{
|
||||
}
|
||||
|
||||
template <class NoSlice>
|
||||
static void
|
||||
base_erase_index(
|
||||
Container& container, Index i, NoSlice no_slice)
|
||||
Container& /*container*/, Index /*i*/, NoSlice /*no_slice*/)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
base_erase_indexes(Container& container, Index from, Index to)
|
||||
base_erase_indexes(Container& /*container*/, Index /*from*/, Index /*to*/)
|
||||
{
|
||||
}
|
||||
};
|
||||
@@ -715,20 +715,20 @@ namespace boost { namespace python { namespace detail {
|
||||
}
|
||||
|
||||
static object
|
||||
base_get_slice(Container& container, PySliceObject* slice)
|
||||
base_get_slice(Container& /*container*/, PySliceObject* /*slice*/)
|
||||
{
|
||||
slicing_not_suported();
|
||||
return object();
|
||||
}
|
||||
|
||||
static void
|
||||
base_set_slice(Container& container, PySliceObject* slice, PyObject* v)
|
||||
base_set_slice(Container& /*container*/, PySliceObject* /*slice*/, PyObject* /*v*/)
|
||||
{
|
||||
slicing_not_suported();
|
||||
}
|
||||
|
||||
static void
|
||||
base_delete_slice(Container& container, PySliceObject* slice)
|
||||
base_delete_slice(Container& /*container*/, PySliceObject* /*slice*/)
|
||||
{
|
||||
slicing_not_suported();
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace boost { namespace python {
|
||||
}
|
||||
|
||||
static index_type
|
||||
convert_index(Container& container, PyObject* i_)
|
||||
convert_index(Container& /*container*/, PyObject* i_)
|
||||
{
|
||||
extract<key_type const&> i(i_);
|
||||
if (i.check())
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace boost { namespace python {
|
||||
}
|
||||
|
||||
static index_type
|
||||
get_min_index(Container& container)
|
||||
get_min_index(Container& /*container*/)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -160,7 +160,7 @@ namespace boost { namespace python {
|
||||
}
|
||||
|
||||
static bool
|
||||
compare_index(Container& container, index_type a, index_type b)
|
||||
compare_index(Container& /*container*/, index_type a, index_type b)
|
||||
{
|
||||
return a < b;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user