Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-05-28 19:10:57


Author: danieljames
Date: 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
New Revision: 45882
URL: http://svn.boost.org/trac/boost/changeset/45882

Log:
Remove several unused parameters.

Text files modified:
   branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp | 4 ++--
   branches/unordered/trunk/libs/unordered/test/exception/Jamfile.v2 | 2 +-
   branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp | 2 +-
   branches/unordered/trunk/libs/unordered/test/objects/memory.hpp | 4 ++--
   branches/unordered/trunk/libs/unordered/test/unordered/Jamfile.v2 | 2 +-
   branches/unordered/trunk/libs/unordered/test/unordered/move_tests.cpp | 2 +-
   6 files changed, 8 insertions(+), 8 deletions(-)

Modified: branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp
==============================================================================
--- branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp (original)
+++ branches/unordered/trunk/boost/unordered/detail/hash_table_impl.hpp 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
@@ -2014,7 +2014,7 @@
             // if hash function throws, basic exception safety
             // strong otherwise
             template<typename... Args>
- iterator_base insert_hint(iterator_base const& it, Args&&... args)
+ iterator_base insert_hint(iterator_base const&, Args&&... args)
             {
                 // Life is complicated - just call the normal implementation.
                 return insert(std::forward<Args>(args)...).first;
@@ -2169,7 +2169,7 @@
                 return it1 == end1 && it2 == end2;
             }
 #else
- static inline bool group_equals(link_ptr it1, link_ptr it2,
+ static inline bool group_equals(link_ptr, link_ptr,
                     type_wrapper<key_type>*)
             {
                 return true;

Modified: branches/unordered/trunk/libs/unordered/test/exception/Jamfile.v2
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/exception/Jamfile.v2 (original)
+++ branches/unordered/trunk/libs/unordered/test/exception/Jamfile.v2 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
@@ -11,7 +11,7 @@
 project unordered-test/exception-tests
     : requirements
         <toolset>intel-linux:"<cxxflags>-strict_ansi -cxxlib-icc"
- <toolset>gcc:<cxxflags>-Wsign-promo
+ <toolset>gcc:<cxxflags>"-Wsign-promo -Wunused-parameter"
     ;
 
 test-suite unordered-exception

Modified: branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/helpers/exception_test.hpp 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
@@ -210,7 +210,7 @@
         }
 
         template <class Test>
- void exception_safety(Test const& f, char const* name) {
+ void exception_safety(Test const& f, char const* /*name*/) {
             test_runner<Test> runner(f);
 
             iteration = 0;

Modified: branches/unordered/trunk/libs/unordered/test/objects/memory.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/objects/memory.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/objects/memory.hpp 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
@@ -153,12 +153,12 @@
                 if(count_allocations > 0) --count_allocations;
             }
 
- void track_construct(void* ptr, std::size_t /*size*/, int tag)
+ void track_construct(void* /*ptr*/, std::size_t /*size*/, int /*tag*/)
             {
                 ++count_constructions;
             }
 
- void track_destroy(void* ptr, std::size_t /*size*/, int tag)
+ void track_destroy(void* /*ptr*/, std::size_t /*size*/, int /*tag*/)
             {
                 BOOST_CHECK(count_constructions > 0);
                 if(count_constructions > 0) --count_constructions;

Modified: branches/unordered/trunk/libs/unordered/test/unordered/Jamfile.v2
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/unordered/Jamfile.v2 (original)
+++ branches/unordered/trunk/libs/unordered/test/unordered/Jamfile.v2 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
@@ -8,7 +8,7 @@
 project unordered-test/unordered
     : requirements
         <toolset>intel-linux:"<cxxflags>-strict_ansi -cxxlib-icc"
- <toolset>gcc:<cxxflags>-Wsign-promo
+ <toolset>gcc:<cxxflags>"-Wsign-promo -Wunused-parameter"
         #<toolset>msvc:<cxxflags>/W4
     ;
 

Modified: branches/unordered/trunk/libs/unordered/test/unordered/move_tests.cpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/unordered/move_tests.cpp (original)
+++ branches/unordered/trunk/libs/unordered/test/unordered/move_tests.cpp 2008-05-28 19:10:56 EDT (Wed, 28 May 2008)
@@ -17,7 +17,7 @@
     test::seed_t seed(98624);
 
     template<class T>
- T empty(T* ptr) {
+ T empty(T*) {
         return T();
     }
 


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