2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-19 16:32:16 +00:00

Merged revisions 41544-41546,41549-41551,41558-41561,41564,41567,41570,41573,41576-41579,41581,41583-41586,41589,41591,41594-41612,41614-41620,41622-41624,41628,41630-41635,41637,41640-41641,41643,41649-41650 via svnmerge from

https://svn.boost.org/svn/boost/trunk

........
  r41544 | jhunold | 2007-12-01 20:27:06 +0100 (Sa, 01 Dez 2007) | 2 lines
  
  Silence compiler by adding cosmetic virtual destructors.
........
  r41549 | jhunold | 2007-12-01 21:24:51 +0100 (Sa, 01 Dez 2007) | 2 lines
  
  Silence compiler by adding cosmetic virtual destructors.
........
  r41550 | jhunold | 2007-12-01 21:26:37 +0100 (Sa, 01 Dez 2007) | 3 lines
  
  Remove unused paramters.
  Add -Wextra to gcc flags to enable more warnings.
........
  r41577 | jhunold | 2007-12-02 12:51:08 +0100 (So, 02 Dez 2007) | 3 lines
  
  Revert revisions 41544 and 41549.
  See http://lists.boost.org/Archives/boost/2007/12/131116.php for details.
........
  r41649 | jhunold | 2007-12-03 19:47:17 +0100 (Mo, 03 Dez 2007) | 2 lines
  
  Silence unused paramter warning in release mode.
........
  r41650 | jhunold | 2007-12-03 19:51:26 +0100 (Mo, 03 Dez 2007) | 2 lines
  
  Add cosmetic virtual detructors to silence compile warnings.
........


[SVN r42094]
This commit is contained in:
Jürgen Hunold
2007-12-16 10:12:07 +00:00
parent d9b4ada654
commit 63f8e9f3d7
13 changed files with 20 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ struct implicit
arg_from_python<Source> get_source(obj);
bool convertible = get_source.convertible();
BOOST_ASSERT(convertible);
BOOST_VERIFY(convertible);
new (storage) Target(get_source());

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

@@ -11,7 +11,7 @@ struct A {};
struct V
{
virtual ~V() {}; // silence compiler warningsa
virtual void f() = 0;
const A* inside() {return &a;}

View File

@@ -7,6 +7,7 @@
struct V
{
virtual ~V() {}; // silence compiler warningsa
virtual void f() = 0;
};

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

@@ -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(); }
};

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

View File

@@ -10,6 +10,7 @@ using namespace boost::python;
class Abstract
{
public:
virtual ~Abstract() {}; // silence compiler warningsa
virtual std::string f() =0;
};

View File

@@ -129,6 +129,7 @@ shared_ptr<Y> factory(int n)
// regressions from Nicodemus
struct A
{
virtual ~A() {}; // silence compiler warnings
virtual int f() = 0;
static int call_f(shared_ptr<A>& a) { return a->f(); }
};

View File

@@ -13,6 +13,7 @@
struct data
{
virtual ~data() {}; // silence compiler warnings
virtual int id() const
{
return 42;