2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Remove unused paramters.

Add -Wextra to gcc flags to enable more warnings.


[SVN r41550]
This commit is contained in:
Jürgen Hunold
2007-12-01 20:26:37 +00:00
parent 40e4940877
commit 5cbb539ec5
6 changed files with 13 additions and 10 deletions

View File

@@ -95,7 +95,7 @@ result(X const&, short = 0) { return 0; }
# define N BOOST_PP_ITERATION()
template <class R BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, class A)>
boost::type<R>* result(R (*pf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0)
boost::type<R>* result(R (*)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)), int = 0)
{
return 0;
}
@@ -120,7 +120,7 @@ boost::type<R>* 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 <class R, class T BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, class A)>
boost::type<R>* result(R (T::*pmf)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)) Q, int = 0)
boost::type<R>* result(R (T::*)(BOOST_PP_ENUM_PARAMS_Z(1, N, A)) Q, int = 0)
{
return 0;
}

View File

@@ -149,7 +149,7 @@ struct unwind_helper2<reference_to_pointer_>
template <class Generator, class U>
inline typename Generator::result_type
#ifndef _MSC_VER
unwind_type(boost::type<U>*p, Generator*)
unwind_type(boost::type<U>*, Generator*)
#else
unwind_type(boost::type<U>*p =0, Generator* =0)
#endif

View File

@@ -36,7 +36,7 @@ template <bool is_const_ref>
struct object_manager_get_pytype
{
template <class U>
static PyTypeObject const* get( U& (*p)() =0)
static PyTypeObject const* get( U& (*)() =0)
{
return converter::object_manager_traits<U>::get_pytype();
}
@@ -46,7 +46,7 @@ template <>
struct object_manager_get_pytype<true>
{
template <class U>
static PyTypeObject const* get( U const& (*p)() =0)
static PyTypeObject const* get( U const& (*)() =0)
{
return converter::object_manager_traits<U>::get_pytype();
}

View File

@@ -5,7 +5,10 @@
import python ;
use-project /boost/python : ../build ;
project /boost/python/test ;
project /boost/python/test
: requirements
<toolset>gcc:<cxxflags>-Wextra
;
local PY = ;
if [ python.configured ]

View File

@@ -9,13 +9,13 @@
using namespace boost::python;
template <class T>
void assert_borrowed_ptr(T const& x)
void assert_borrowed_ptr(T const&)
{
BOOST_STATIC_ASSERT(boost::python::detail::is_borrowed_ptr<T>::value);
}
template <class T>
void assert_not_borrowed_ptr(T const& x)
void assert_not_borrowed_ptr(T const&)
{
BOOST_STATIC_ASSERT(!boost::python::detail::is_borrowed_ptr<T>::value);
}

View File

@@ -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