diff --git a/include/boost/python/converter/implicit.hpp b/include/boost/python/converter/implicit.hpp index cf5d8fa6..8bbbfd5a 100644 --- a/include/boost/python/converter/implicit.hpp +++ b/include/boost/python/converter/implicit.hpp @@ -32,7 +32,7 @@ struct implicit arg_from_python get_source(obj); bool convertible = get_source.convertible(); - BOOST_ASSERT(convertible); + BOOST_VERIFY(convertible); new (storage) Target(get_source()); 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 4ab785f0..3e4f3cc1 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/bienstman1.cpp b/test/bienstman1.cpp index 281c89aa..dc006578 100644 --- a/test/bienstman1.cpp +++ b/test/bienstman1.cpp @@ -11,7 +11,7 @@ struct A {}; struct V { - + virtual ~V() {}; // silence compiler warningsa virtual void f() = 0; const A* inside() {return &a;} diff --git a/test/bienstman3.cpp b/test/bienstman3.cpp index 1a8a7714..d765b303 100644 --- a/test/bienstman3.cpp +++ b/test/bienstman3.cpp @@ -7,6 +7,7 @@ struct V { + virtual ~V() {}; // silence compiler warningsa virtual void f() = 0; }; 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/implicit.cpp b/test/implicit.cpp index 61ca21a7..a1bae59e 100644 --- a/test/implicit.cpp +++ b/test/implicit.cpp @@ -24,6 +24,7 @@ X make_x(int n) { return X(n); } struct bar {}; struct foo { + virtual ~foo() {}; // silence compiler warnings virtual void f() = 0; operator bar() const { return bar(); } }; 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 diff --git a/test/pointer_vector.cpp b/test/pointer_vector.cpp index c1f7dbd4..08cd4861 100644 --- a/test/pointer_vector.cpp +++ b/test/pointer_vector.cpp @@ -10,6 +10,7 @@ using namespace boost::python; class Abstract { public: + virtual ~Abstract() {}; // silence compiler warningsa virtual std::string f() =0; }; diff --git a/test/shared_ptr.cpp b/test/shared_ptr.cpp index ee007abd..e5f20a73 100644 --- a/test/shared_ptr.cpp +++ b/test/shared_ptr.cpp @@ -129,6 +129,7 @@ shared_ptr factory(int n) // regressions from Nicodemus struct A { + virtual ~A() {}; // silence compiler warnings virtual int f() = 0; static int call_f(shared_ptr& a) { return a->f(); } }; diff --git a/test/wrapper_held_type.cpp b/test/wrapper_held_type.cpp index d5afface..e9942279 100755 --- a/test/wrapper_held_type.cpp +++ b/test/wrapper_held_type.cpp @@ -13,6 +13,7 @@ struct data { + virtual ~data() {}; // silence compiler warnings virtual int id() const { return 42;