Boost logo

Boost-Commit :

From: juergen.hunold_at_[hidden]
Date: 2007-12-01 15:26:37


Author: jhunold
Date: 2007-12-01 15:26:37 EST (Sat, 01 Dec 2007)
New Revision: 41550
URL: http://svn.boost.org/trac/boost/changeset/41550

Log:
Remove unused paramters.
Add -Wextra to gcc flags to enable more warnings.

Text files modified:
   trunk/boost/python/detail/result.hpp | 4 ++--
   trunk/boost/python/detail/unwind_type.hpp | 2 +-
   trunk/boost/python/to_python_value.hpp | 4 ++--
   trunk/libs/python/test/Jamfile.v2 | 5 ++++-
   trunk/libs/python/test/borrowed.cpp | 4 ++--
   trunk/libs/python/test/operators_wrapper.cpp | 4 ++--
   6 files changed, 13 insertions(+), 10 deletions(-)

Modified: trunk/boost/python/detail/result.hpp
==============================================================================
--- trunk/boost/python/detail/result.hpp (original)
+++ trunk/boost/python/detail/result.hpp 2007-12-01 15:26:37 EST (Sat, 01 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: trunk/boost/python/detail/unwind_type.hpp
==============================================================================
--- trunk/boost/python/detail/unwind_type.hpp (original)
+++ trunk/boost/python/detail/unwind_type.hpp 2007-12-01 15:26:37 EST (Sat, 01 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: trunk/boost/python/to_python_value.hpp
==============================================================================
--- trunk/boost/python/to_python_value.hpp (original)
+++ trunk/boost/python/to_python_value.hpp 2007-12-01 15:26:37 EST (Sat, 01 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: trunk/libs/python/test/Jamfile.v2
==============================================================================
--- trunk/libs/python/test/Jamfile.v2 (original)
+++ trunk/libs/python/test/Jamfile.v2 2007-12-01 15:26:37 EST (Sat, 01 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: trunk/libs/python/test/borrowed.cpp
==============================================================================
--- trunk/libs/python/test/borrowed.cpp (original)
+++ trunk/libs/python/test/borrowed.cpp 2007-12-01 15:26:37 EST (Sat, 01 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: trunk/libs/python/test/operators_wrapper.cpp
==============================================================================
--- trunk/libs/python/test/operators_wrapper.cpp (original)
+++ trunk/libs/python/test/operators_wrapper.cpp 2007-12-01 15:26:37 EST (Sat, 01 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


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