Skip to content

Commit 203a42c

Browse files
author
Ralf W. Grosse-Kunstleve
committed
avoid g++ -Wall -W "unused parameter" warnings
[SVN r32371]
1 parent 8eba0eb commit 203a42c

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

include/boost/python/detail/wrapper_base.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace detail
2121
inline PyObject* get_owner(wrapper_base const volatile& w);
2222

2323
inline PyObject*
24-
owner_impl(void const volatile* x, mpl::false_)
24+
owner_impl(void const volatile* /*x*/, mpl::false_)
2525
{
2626
return 0;
2727
}

include/boost/python/object/pickle_support.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ namespace detail {
5454
register_(
5555
Class_& cl,
5656
tuple (*getinitargs_fn)(Tgetinitargs),
57-
inaccessible* (*getstate_fn)(),
58-
inaccessible* (*setstate_fn)(),
57+
inaccessible* (* /*getstate_fn*/)(),
58+
inaccessible* (* /*setstate_fn*/)(),
5959
bool)
6060
{
6161
cl.enable_pickling_(false);
@@ -69,7 +69,7 @@ namespace detail {
6969
void
7070
register_(
7171
Class_& cl,
72-
inaccessible* (*getinitargs_fn)(),
72+
inaccessible* (* /*getinitargs_fn*/)(),
7373
Rgetstate (*getstate_fn)(Tgetstate),
7474
void (*setstate_fn)(Tsetstate, Ttuple),
7575
bool getstate_manages_dict)

include/boost/python/suite/indexing/detail/indexing_suite_detail.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -490,20 +490,20 @@ namespace boost { namespace python { namespace detail {
490490

491491
static void
492492
base_replace_indexes(
493-
Container& container, Index from,
494-
Index to, Index n)
493+
Container& /*container*/, Index /*from*/,
494+
Index /*to*/, Index /*n*/)
495495
{
496496
}
497497

498498
template <class NoSlice>
499499
static void
500500
base_erase_index(
501-
Container& container, Index i, NoSlice no_slice)
501+
Container& /*container*/, Index /*i*/, NoSlice /*no_slice*/)
502502
{
503503
}
504504

505505
static void
506-
base_erase_indexes(Container& container, Index from, Index to)
506+
base_erase_indexes(Container& /*container*/, Index /*from*/, Index /*to*/)
507507
{
508508
}
509509
};
@@ -715,20 +715,20 @@ namespace boost { namespace python { namespace detail {
715715
}
716716

717717
static object
718-
base_get_slice(Container& container, PySliceObject* slice)
718+
base_get_slice(Container& /*container*/, PySliceObject* /*slice*/)
719719
{
720720
slicing_not_suported();
721721
return object();
722722
}
723723

724724
static void
725-
base_set_slice(Container& container, PySliceObject* slice, PyObject* v)
725+
base_set_slice(Container& /*container*/, PySliceObject* /*slice*/, PyObject* /*v*/)
726726
{
727727
slicing_not_suported();
728728
}
729729

730730
static void
731-
base_delete_slice(Container& container, PySliceObject* slice)
731+
base_delete_slice(Container& /*container*/, PySliceObject* /*slice*/)
732732
{
733733
slicing_not_suported();
734734
}

include/boost/python/suite/indexing/map_indexing_suite.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ namespace boost { namespace python {
156156
}
157157

158158
static index_type
159-
convert_index(Container& container, PyObject* i_)
159+
convert_index(Container& /*container*/, PyObject* i_)
160160
{
161161
extract<key_type const&> i(i_);
162162
if (i.check())

include/boost/python/suite/indexing/vector_indexing_suite.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ namespace boost { namespace python {
148148
}
149149

150150
static index_type
151-
get_min_index(Container& container)
151+
get_min_index(Container& /*container*/)
152152
{
153153
return 0;
154154
}
@@ -160,7 +160,7 @@ namespace boost { namespace python {
160160
}
161161

162162
static bool
163-
compare_index(Container& container, index_type a, index_type b)
163+
compare_index(Container& /*container*/, index_type a, index_type b)
164164
{
165165
return a < b;
166166
}

0 commit comments

Comments
 (0)