Boost logo

Boost-Commit :

From: juergen.hunold_at_[hidden]
Date: 2007-12-16 05:12:09


Author: jhunold
Date: 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
New Revision: 42094
URL: http://svn.boost.org/trac/boost/changeset/42094

Log:
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.
........

Properties modified:
   branches/release/ (props changed)
Text files modified:
   branches/release/boost/python/converter/implicit.hpp | 2 +-
   branches/release/boost/python/detail/result.hpp | 4 ++--
   branches/release/boost/python/detail/unwind_type.hpp | 2 +-
   branches/release/boost/python/to_python_value.hpp | 4 ++--
   branches/release/libs/python/test/Jamfile.v2 | 5 ++++-
   branches/release/libs/python/test/bienstman1.cpp | 2 +-
   branches/release/libs/python/test/bienstman3.cpp | 1 +
   branches/release/libs/python/test/borrowed.cpp | 4 ++--
   branches/release/libs/python/test/implicit.cpp | 1 +
   branches/release/libs/python/test/operators_wrapper.cpp | 4 ++--
   branches/release/libs/python/test/pointer_vector.cpp | 1 +
   branches/release/libs/python/test/shared_ptr.cpp | 1 +
   branches/release/libs/python/test/wrapper_held_type.cpp | 1 +
   13 files changed, 20 insertions(+), 12 deletions(-)

Modified: branches/release/boost/python/converter/implicit.hpp
==============================================================================
--- branches/release/boost/python/converter/implicit.hpp (original)
+++ branches/release/boost/python/converter/implicit.hpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -32,7 +32,7 @@
 
         arg_from_python<Source> get_source(obj);
         bool convertible = get_source.convertible();
- BOOST_ASSERT(convertible);
+ BOOST_VERIFY(convertible);
         
         new (storage) Target(get_source());
         

Modified: branches/release/boost/python/detail/result.hpp
==============================================================================
--- branches/release/boost/python/detail/result.hpp (original)
+++ branches/release/boost/python/detail/result.hpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -95,7 +95,7 @@
 # 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 @@
 # 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;
 }

Modified: branches/release/boost/python/detail/unwind_type.hpp
==============================================================================
--- branches/release/boost/python/detail/unwind_type.hpp (original)
+++ branches/release/boost/python/detail/unwind_type.hpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -149,7 +149,7 @@
 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

Modified: branches/release/boost/python/to_python_value.hpp
==============================================================================
--- branches/release/boost/python/to_python_value.hpp (original)
+++ branches/release/boost/python/to_python_value.hpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -36,7 +36,7 @@
 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 @@
 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();
    }

Modified: branches/release/libs/python/test/Jamfile.v2
==============================================================================
--- branches/release/libs/python/test/Jamfile.v2 (original)
+++ branches/release/libs/python/test/Jamfile.v2 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -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 ]

Modified: branches/release/libs/python/test/bienstman1.cpp
==============================================================================
--- branches/release/libs/python/test/bienstman1.cpp (original)
+++ branches/release/libs/python/test/bienstman1.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -11,7 +11,7 @@
 
 struct V
 {
-
+ virtual ~V() {}; // silence compiler warningsa
  virtual void f() = 0;
 
  const A* inside() {return &a;}

Modified: branches/release/libs/python/test/bienstman3.cpp
==============================================================================
--- branches/release/libs/python/test/bienstman3.cpp (original)
+++ branches/release/libs/python/test/bienstman3.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -7,6 +7,7 @@
 
 struct V
 {
+ virtual ~V() {}; // silence compiler warningsa
  virtual void f() = 0;
 };
 

Modified: branches/release/libs/python/test/borrowed.cpp
==============================================================================
--- branches/release/libs/python/test/borrowed.cpp (original)
+++ branches/release/libs/python/test/borrowed.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -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);
 }

Modified: branches/release/libs/python/test/implicit.cpp
==============================================================================
--- branches/release/libs/python/test/implicit.cpp (original)
+++ branches/release/libs/python/test/implicit.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -24,6 +24,7 @@
 struct bar {};
 struct foo
 {
+ virtual ~foo() {}; // silence compiler warnings
     virtual void f() = 0;
     operator bar() const { return bar(); }
 };

Modified: branches/release/libs/python/test/operators_wrapper.cpp
==============================================================================
--- branches/release/libs/python/test/operators_wrapper.cpp (original)
+++ branches/release/libs/python/test/operators_wrapper.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -5,10 +5,10 @@
 {
     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

Modified: branches/release/libs/python/test/pointer_vector.cpp
==============================================================================
--- branches/release/libs/python/test/pointer_vector.cpp (original)
+++ branches/release/libs/python/test/pointer_vector.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -10,6 +10,7 @@
 class Abstract
 {
 public:
+ virtual ~Abstract() {}; // silence compiler warningsa
     virtual std::string f() =0;
 };
 

Modified: branches/release/libs/python/test/shared_ptr.cpp
==============================================================================
--- branches/release/libs/python/test/shared_ptr.cpp (original)
+++ branches/release/libs/python/test/shared_ptr.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -129,6 +129,7 @@
 // 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(); }
     };

Modified: branches/release/libs/python/test/wrapper_held_type.cpp
==============================================================================
--- branches/release/libs/python/test/wrapper_held_type.cpp (original)
+++ branches/release/libs/python/test/wrapper_held_type.cpp 2007-12-16 05:12:07 EST (Sun, 16 Dec 2007)
@@ -13,6 +13,7 @@
 
 struct data
 {
+ virtual ~data() {}; // silence compiler warnings
     virtual int id() const
     {
         return 42;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk