Skip to content

Commit 5cbb539

Browse files
committed
Remove unused paramters.
Add -Wextra to gcc flags to enable more warnings. [SVN r41550]
1 parent 40e4940 commit 5cbb539

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

include/boost/python/detail/result.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ result(X const&, short = 0) { return 0; }
9595
# define N BOOST_PP_ITERATION()
9696

9797
template <class R BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, class A)>
98-
boost::type<R>* result(R (*pf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0)
98+
boost::type<R>* result(R (*)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0)
9999
{
100100
return 0;
101101
}
@@ -120,7 +120,7 @@ boost::type<R>* result(R (*pf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0)
120120
# define Q BOOST_PYTHON_CV_QUALIFIER(BOOST_PP_RELATIVE_ITERATION(1))
121121

122122
template <class R, class T BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, class A)>
123-
boost::type<R>* result(R (T::*pmf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)) Q, int = 0)
123+
boost::type<R>* result(R (T::*)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)) Q, int = 0)
124124
{
125125
return 0;
126126
}

include/boost/python/detail/unwind_type.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct unwind_helper2<reference_to_pointer_>
149149
template <class Generator, class U>
150150
inline typename Generator::result_type
151151
#ifndef _MSC_VER
152-
unwind_type(boost::type<U>*p, Generator*)
152+
unwind_type(boost::type<U>*, Generator*)
153153
#else
154154
unwind_type(boost::type<U>*p =0, Generator* =0)
155155
#endif

include/boost/python/to_python_value.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ template <bool is_const_ref>
3636
struct object_manager_get_pytype
3737
{
3838
template <class U>
39-
static PyTypeObject const* get( U& (*p)() =0)
39+
static PyTypeObject const* get( U& (*)() =0)
4040
{
4141
return converter::object_manager_traits<U>::get_pytype();
4242
}
@@ -46,7 +46,7 @@ template <>
4646
struct object_manager_get_pytype<true>
4747
{
4848
template <class U>
49-
static PyTypeObject const* get( U const& (*p)() =0)
49+
static PyTypeObject const* get( U const& (*)() =0)
5050
{
5151
return converter::object_manager_traits<U>::get_pytype();
5252
}

test/Jamfile.v2

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
import python ;
66

77
use-project /boost/python : ../build ;
8-
project /boost/python/test ;
8+
project /boost/python/test
9+
: requirements
10+
<toolset>gcc:<cxxflags>-Wextra
11+
;
912

1013
local PY = ;
1114
if [ python.configured ]

test/borrowed.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
using namespace boost::python;
1010

1111
template <class T>
12-
void assert_borrowed_ptr(T const& x)
12+
void assert_borrowed_ptr(T const&)
1313
{
1414
BOOST_STATIC_ASSERT(boost::python::detail::is_borrowed_ptr<T>::value);
1515
}
1616

1717
template <class T>
18-
void assert_not_borrowed_ptr(T const& x)
18+
void assert_not_borrowed_ptr(T const&)
1919
{
2020
BOOST_STATIC_ASSERT(!boost::python::detail::is_borrowed_ptr<T>::value);
2121
}

test/operators_wrapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ struct vector
55
{
66
virtual ~vector() {}
77

8-
vector operator+( const vector& x ) const
8+
vector operator+( const vector& ) const
99
{ return vector(); }
1010

11-
vector& operator+=( const vector& x )
11+
vector& operator+=( const vector& )
1212
{ return *this; }
1313

1414
vector operator-() const

0 commit comments

Comments
 (0)