diff --git a/include/boost/python/detail/result.hpp b/include/boost/python/detail/result.hpp index 9e322dd7..80e4387f 100755 --- a/include/boost/python/detail/result.hpp +++ b/include/boost/python/detail/result.hpp @@ -95,7 +95,7 @@ result(X const&, short = 0) { return 0; } # define N BOOST_PP_ITERATION() template -boost::type* result(R (*pf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0) +boost::type* result(R (*)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0) { return 0; } @@ -120,7 +120,7 @@ boost::type* result(R (*pf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0) # define Q BOOST_PYTHON_CV_QUALIFIER(BOOST_PP_RELATIVE_ITERATION(1)) template -boost::type* result(R (T::*pmf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)) Q, int = 0) +boost::type* result(R (T::*)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)) Q, int = 0) { return 0; } diff --git a/include/boost/python/detail/unwind_type.hpp b/include/boost/python/detail/unwind_type.hpp index 3c6f8ca2..9a997c9d 100755 --- a/include/boost/python/detail/unwind_type.hpp +++ b/include/boost/python/detail/unwind_type.hpp @@ -149,7 +149,7 @@ struct unwind_helper2 template inline typename Generator::result_type #ifndef _MSC_VER -unwind_type(boost::type*p, Generator*) +unwind_type(boost::type*, Generator*) #else unwind_type(boost::type*p =0, Generator* =0) #endif diff --git a/include/boost/python/to_python_value.hpp b/include/boost/python/to_python_value.hpp index c40299ba..a48948d2 100644 --- a/include/boost/python/to_python_value.hpp +++ b/include/boost/python/to_python_value.hpp @@ -36,7 +36,7 @@ template struct object_manager_get_pytype { template - static PyTypeObject const* get( U& (*p)() =0) + static PyTypeObject const* get( U& (*)() =0) { return converter::object_manager_traits::get_pytype(); } @@ -46,7 +46,7 @@ template <> struct object_manager_get_pytype { template - static PyTypeObject const* get( U const& (*p)() =0) + static PyTypeObject const* get( U const& (*)() =0) { return converter::object_manager_traits::get_pytype(); } diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 4907c809..4e1479b4 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -5,7 +5,10 @@ import python ; use-project /boost/python : ../build ; -project /boost/python/test ; +project /boost/python/test + : requirements + gcc:-Wextra + ; local PY = ; if [ python.configured ] diff --git a/test/borrowed.cpp b/test/borrowed.cpp index 0daccff1..2c1bd1b7 100755 --- a/test/borrowed.cpp +++ b/test/borrowed.cpp @@ -9,13 +9,13 @@ using namespace boost::python; template -void assert_borrowed_ptr(T const& x) +void assert_borrowed_ptr(T const&) { BOOST_STATIC_ASSERT(boost::python::detail::is_borrowed_ptr::value); } template -void assert_not_borrowed_ptr(T const& x) +void assert_not_borrowed_ptr(T const&) { BOOST_STATIC_ASSERT(!boost::python::detail::is_borrowed_ptr::value); } diff --git a/test/operators_wrapper.cpp b/test/operators_wrapper.cpp index f00aa2b4..12f30048 100644 --- a/test/operators_wrapper.cpp +++ b/test/operators_wrapper.cpp @@ -5,10 +5,10 @@ struct vector { virtual ~vector() {} - vector operator+( const vector& x ) const + vector operator+( const vector& ) const { return vector(); } - vector& operator+=( const vector& x ) + vector& operator+=( const vector& ) { return *this; } vector operator-() const