Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77849 - in trunk/libs/thread: build src/pthread test test/sync/conditions/condition_variable test/sync/conditions/condition_variable_any test/sync/futures test/sync/futures/future test/sync/futures/packaged_task test/sync/futures/promise test/sync/mutual_exclusion/locks/lock_guard test/sync/mutual_exclusion/locks/reverse_lock test/sync/mutual_exclusion/locks/shared_lock/cons test/sync/mutual_exclusion/locks/shared_lock_guard test/sync/mutual_exclusion/locks/unique_lock/cons test/sync/mutual_exclusion/locks/unique_lock/obs test/sync/mutual_exclusion/locks/upgrade_lock/cons test/sync/mutual_exclusion/mutex test/sync/mutual_exclusion/recursive_mutex test/sync/mutual_exclusion/recursive_timed_mutex test/sync/mutual_exclusion/shared_mutex test/sync/mutual_exclusion/timed_mutex test/threads/thread/assign test/threads/thread/constr test/threads/thread/members
From: vicente.botet_at_[hidden]
Date: 2012-04-09 11:26:48


Author: viboes
Date: 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
New Revision: 77849
URL: http://svn.boost.org/trac/boost/changeset/77849

Log:
Thread: remove some warnings
Text files modified:
   trunk/libs/thread/build/Jamfile.v2 | 9 +++
   trunk/libs/thread/src/pthread/thread.cpp | 2
   trunk/libs/thread/test/Jamfile.v2 | 12 ++++
   trunk/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp | 14 +++++
   trunk/libs/thread/test/no_implicit_move_from_lvalue_thread.cpp | 14 +++++
   trunk/libs/thread/test/sync/conditions/condition_variable/assign_fail.cpp | 13 +++++
   trunk/libs/thread/test/sync/conditions/condition_variable/copy_fail.cpp | 12 ++++
   trunk/libs/thread/test/sync/conditions/condition_variable/wait_for_pred_pass.cpp | 3
   trunk/libs/thread/test/sync/conditions/condition_variable_any/assign_fail.cpp | 12 ++++
   trunk/libs/thread/test/sync/conditions/condition_variable_any/copy_fail.cpp | 12 ++++
   trunk/libs/thread/test/sync/conditions/condition_variable_any/wait_for_pred_pass.cpp | 3
   trunk/libs/thread/test/sync/futures/future/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/futures/future/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/futures/packaged_task/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/futures/packaged_task/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/futures/promise/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/futures/promise/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/futures/promise/dtor_pass.cpp | 6 +
   trunk/libs/thread/test/sync/futures/test_allocator.hpp | 4
   trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/obs/op_int_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_ctor_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/mutex/assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/mutex/copy_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/copy_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/copy_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/assign_fail.cpp | 10 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/copy_fail.cpp | 12 +++++
   trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/assign_fail.cpp | 11 ++++
   trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/copy_fail.cpp | 10 ++++
   trunk/libs/thread/test/test_2309.cpp | 13 +++++
   trunk/libs/thread/test/test_2741.cpp | 13 +++++
   trunk/libs/thread/test/test_4648.cpp | 4
   trunk/libs/thread/test/test_5351.cpp | 2
   trunk/libs/thread/test/test_5542_1.cpp | 2
   trunk/libs/thread/test/test_5542_3.cpp | 2
   trunk/libs/thread/test/test_6130.cpp | 3
   trunk/libs/thread/test/test_barrier.cpp | 17 ++++++
   trunk/libs/thread/test/test_condition.cpp | 17 ++++++
   trunk/libs/thread/test/test_condition_notify_all.cpp | 19 ++++++-
   trunk/libs/thread/test/test_condition_notify_one.cpp | 29 ++++++++---
   trunk/libs/thread/test/test_condition_timed_wait_times_out.cpp | 23 +++++++--
   trunk/libs/thread/test/test_futures.cpp | 14 +++++
   trunk/libs/thread/test/test_generic_locks.cpp | 95 ++++++++++++++++++++++-----------------
   trunk/libs/thread/test/test_hardware_concurrency.cpp | 15 +++++
   trunk/libs/thread/test/test_lock_concept.cpp | 15 +++++
   trunk/libs/thread/test/test_move_function.cpp | 13 +++++
   trunk/libs/thread/test/test_mutex.cpp | 31 +++++++++---
   trunk/libs/thread/test/test_once.cpp | 17 ++++++
   trunk/libs/thread/test/test_shared_mutex.cpp | 25 ++++++++--
   trunk/libs/thread/test/test_shared_mutex_part_2.cpp | 27 ++++++++--
   trunk/libs/thread/test/test_shared_mutex_timed_locks.cpp | 15 +++++
   trunk/libs/thread/test/test_shared_mutex_timed_locks_chrono.cpp | 13 +++++
   trunk/libs/thread/test/test_thread.cpp | 36 ++++++++++----
   trunk/libs/thread/test/test_thread_exit.cpp | 15 +++++
   trunk/libs/thread/test/test_thread_id.cpp | 21 +++++++-
   trunk/libs/thread/test/test_thread_launching.cpp | 34 ++++++++++----
   trunk/libs/thread/test/test_thread_move.cpp | 14 +++++
   trunk/libs/thread/test/test_thread_move_return.cpp | 16 ++++++
   trunk/libs/thread/test/test_thread_return_local.cpp | 14 +++++
   trunk/libs/thread/test/test_tss.cpp | 28 ++++++++--
   trunk/libs/thread/test/test_xtime.cpp | 18 ++++++
   trunk/libs/thread/test/threads/thread/assign/copy_fail.cpp | 11 ++++
   trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp | 4 +
   trunk/libs/thread/test/threads/thread/constr/F_pass.cpp | 4 +
   trunk/libs/thread/test/threads/thread/constr/copy_fail.cpp | 12 +++++
   trunk/libs/thread/test/threads/thread/members/get_id_pass.cpp | 2
   trunk/libs/thread/test/threads/thread/members/native_handle_pass.cpp | 3
   trunk/libs/thread/test/util.inl | 15 ++++++
   81 files changed, 934 insertions(+), 146 deletions(-)

Modified: trunk/libs/thread/build/Jamfile.v2
==============================================================================
--- trunk/libs/thread/build/Jamfile.v2 (original)
+++ trunk/libs/thread/build/Jamfile.v2 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -71,6 +71,15 @@
         <toolset>gcc-mingw-4.6.3:<cxxflags>-fdiagnostics-show-option
         <toolset>gcc-mingw-4.7.0:<cxxflags>-fdiagnostics-show-option
         <toolset>gcc-mingw-4.8.0:<cxxflags>-fdiagnostics-show-option
+ <toolset>darwin-4.6.2:<cxxflags>-Wno-delete-non-virtual-dtor
+ <toolset>darwin-4.7.0:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-2.8:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-2.8:<cxxflags>-Wno-unused-function
+ #<toolset>clang-2.9:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-2.9:<cxxflags>-Wno-unused-function
+ <toolset>clang-3.0:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-3.0:<cxxflags>-Wno-unused-function
+ #<toolset>clang-3.0:<cxxflags>-Wno-unused-variable
 
 
     # : default-build <threading>multi

Modified: trunk/libs/thread/src/pthread/thread.cpp
==============================================================================
--- trunk/libs/thread/src/pthread/thread.cpp (original)
+++ trunk/libs/thread/src/pthread/thread.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -390,7 +390,7 @@
             if(thread_info)
             {
                 unique_lock<mutex> lk(thread_info->sleep_mutex);
- while(thread_info->sleep_condition.timed_wait(lk,st));
+ while(thread_info->sleep_condition.timed_wait(lk,st)) {}
             }
             else
             {

Modified: trunk/libs/thread/test/Jamfile.v2
==============================================================================
--- trunk/libs/thread/test/Jamfile.v2 (original)
+++ trunk/libs/thread/test/Jamfile.v2 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -41,6 +41,16 @@
         <toolset>gcc-mingw-4.6.3:<cxxflags>-fdiagnostics-show-option
         <toolset>gcc-mingw-4.7.0:<cxxflags>-fdiagnostics-show-option
         <toolset>gcc-mingw-4.8.0:<cxxflags>-fdiagnostics-show-option
+ #<toolset>darwin-4.6.2:<cxxflags>-Wno-delete-non-virtual-dtor
+ <toolset>darwin-4.7.0:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-2.8:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-2.8:<cxxflags>-Wno-unused-function
+ #<toolset>clang-2.9:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-2.9:<cxxflags>-Wno-unused-function
+ <toolset>clang-3.0:<cxxflags>-Wno-delete-non-virtual-dtor
+ #<toolset>clang-3.0:<cxxflags>-Wno-unused-function
+ #<toolset>clang-3.0:<cxxflags>-Wno-unused-variable
+
     ;
 
 rule thread-run ( sources )
@@ -214,7 +224,7 @@
           [ thread-run2 ./sync/futures/packaged_task/move_ctor_pass.cpp : packaged_task__move_ctor_p ]
           [ thread-run2 ./sync/futures/packaged_task/move_assign_pass.cpp : packaged_task__move_asign_p ]
           [ thread-run2 ./sync/futures/packaged_task/use_allocator_pass.cpp : packaged_task__use_allocator_p ]
- [ thread-run2 ./sync/futures/packaged_task/types_pass.cpp : futures__types_p ]
+ [ thread-run2 ./sync/futures/packaged_task/types_pass.cpp : packaged_task__types_p ]
 
     ;
 

Modified: trunk/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp
==============================================================================
--- trunk/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp (original)
+++ trunk/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2008 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/thread/thread.hpp>
 
@@ -13,3 +13,15 @@
     boost::thread t2;
     t2=t1;
 }
+
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+
+}

Modified: trunk/libs/thread/test/no_implicit_move_from_lvalue_thread.cpp
==============================================================================
--- trunk/libs/thread/test/no_implicit_move_from_lvalue_thread.cpp (original)
+++ trunk/libs/thread/test/no_implicit_move_from_lvalue_thread.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2008 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/thread/thread.hpp>
 
@@ -12,3 +12,15 @@
     boost::thread t1(do_nothing);
     boost::thread t2(t1);
 }
+
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+
+}

Modified: trunk/libs/thread/test/sync/conditions/condition_variable/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/conditions/condition_variable/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/conditions/condition_variable/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -19,10 +19,21 @@
 
 #include <boost/thread/condition_variable.hpp>
 
-int fail()
+void fail()
 {
   boost::condition_variable cv0;
   boost::condition_variable cv1;
   cv1 = cv0;
+
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/conditions/condition_variable/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/conditions/condition_variable/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/conditions/condition_variable/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -20,9 +20,19 @@
 #include <boost/thread/condition_variable.hpp>
 #include <boost/detail/lightweight_test.hpp>
 
-int fail()
+void fail()
 {
   boost::condition_variable cv0;
   boost::condition_variable cv1(cv0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/conditions/condition_variable/wait_for_pred_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/conditions/condition_variable/wait_for_pred_pass.cpp (original)
+++ trunk/libs/thread/test/sync/conditions/condition_variable/wait_for_pred_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -57,7 +57,8 @@
   cv.notify_one();
   Clock::time_point t0 = Clock::now();
   int count=0;
- bool r = cv.wait_for(lk, milliseconds(250), Pred(test2));
+ //bool r =
+ (void)cv.wait_for(lk, milliseconds(250), Pred(test2));
   count++;
   Clock::time_point t1 = Clock::now();
   if (runs == 0)

Modified: trunk/libs/thread/test/sync/conditions/condition_variable_any/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/conditions/condition_variable_any/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/conditions/condition_variable_any/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -19,10 +19,20 @@
 
 #include <boost/thread/condition_variable.hpp>
 
-int fail()
+void fail()
 {
   boost::condition_variable_any cv0;
   boost::condition_variable_any cv1;
   cv1 = cv0;
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/conditions/condition_variable_any/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/conditions/condition_variable_any/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/conditions/condition_variable_any/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -20,9 +20,19 @@
 #include <boost/thread/condition_variable.hpp>
 #include <boost/detail/lightweight_test.hpp>
 
-int fail()
+void fail()
 {
   boost::condition_variable_any cv0;
   boost::condition_variable_any cv1(cv0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/conditions/condition_variable_any/wait_for_pred_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/conditions/condition_variable_any/wait_for_pred_pass.cpp (original)
+++ trunk/libs/thread/test/sync/conditions/condition_variable_any/wait_for_pred_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -60,7 +60,8 @@
   test1 = 1;
   cv.notify_one();
   Clock::time_point t0 = Clock::now();
- bool r = cv.wait_for(lk, milliseconds(250), Pred(test2));
+ //bool r =
+ (void)cv.wait_for(lk, milliseconds(250), Pred(test2));
   Clock::time_point t1 = Clock::now();
   if (runs == 0)
   {

Modified: trunk/libs/thread/test/sync/futures/future/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/future/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/futures/future/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -36,3 +36,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/futures/future/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/future/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/futures/future/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -34,3 +34,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/futures/packaged_task/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/packaged_task/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/futures/packaged_task/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -57,3 +57,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/futures/packaged_task/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/packaged_task/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/futures/packaged_task/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -45,3 +45,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/futures/promise/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/promise/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/futures/promise/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -31,3 +31,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/futures/promise/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/promise/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/futures/promise/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -30,3 +30,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/futures/promise/dtor_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/promise/dtor_pass.cpp (original)
+++ trunk/libs/thread/test/sync/futures/promise/dtor_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -44,7 +44,8 @@
       }
       try
       {
- T i = f.get();
+ //T i =
+ (void)f.get();
           BOOST_TEST(false);
       }
       catch (const boost::future_error& e)
@@ -72,7 +73,8 @@
       }
       try
       {
- T i = f.get();
+ //T i =
+ (void)f.get();
           BOOST_TEST(false);
       }
       catch (const boost::future_error& e)

Modified: trunk/libs/thread/test/sync/futures/test_allocator.hpp
==============================================================================
--- trunk/libs/thread/test/sync/futures/test_allocator.hpp (original)
+++ trunk/libs/thread/test/sync/futures/test_allocator.hpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -68,7 +68,7 @@
             ++count;
             return (pointer)std::malloc(n * sizeof(T));
         }
- void deallocate(pointer p, size_type n)
+ void deallocate(pointer p, size_type)
         {--count; std::free(p);}
     size_type max_size() const throw()
         {return UINT_MAX / sizeof(T);}
@@ -141,7 +141,7 @@
         : data_(a.data_) {}
     T* allocate(std::size_t n)
         {return (T*)std::malloc(n * sizeof(T));}
- void deallocate(T* p, std::size_t n)
+ void deallocate(T* p, std::size_t)
         {std::free(p);}
 
     other_allocator select_on_container_copy_construction() const

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -33,3 +33,13 @@
 
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/lock_guard/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -32,3 +32,13 @@
   boost::lock_guard<boost::mutex> lk1 = lk0;
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -29,3 +29,13 @@
 
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/reverse_lock/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -28,3 +28,13 @@
   }
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -37,3 +37,13 @@
 
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -36,3 +36,13 @@
   BOOST_TEST(lk0.owns_lock() == false);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -33,3 +33,13 @@
 
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -32,3 +32,13 @@
   boost::shared_lock_guard<boost::shared_mutex> lk1 = lk0;
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -37,3 +37,13 @@
 
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -36,3 +36,13 @@
   BOOST_TEST(lk0.owns_lock() == false);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/obs/op_int_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/obs/op_int_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/unique_lock/obs/op_int_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -35,3 +35,13 @@
   return boost::report_errors();
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -37,3 +37,13 @@
 
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_ctor_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_ctor_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons/copy_ctor_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -36,3 +36,13 @@
   BOOST_TEST(lk0.owns_lock() == false);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/mutex/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/mutex/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/mutex/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/mutex/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/mutex/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/mutex/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::recursive_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/recursive_mutex/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::recursive_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::recursive_timed_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::recursive_timed_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::shared_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/shared_mutex/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,15 @@
   boost::shared_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+
+}
+

Modified: trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/assign_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/assign_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/assign_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,14 @@
   boost::timed_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+
+}

Modified: trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/copy_fail.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/timed_mutex/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -27,3 +27,13 @@
   boost::timed_mutex m1(m0);
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+}

Modified: trunk/libs/thread/test/test_2309.cpp
==============================================================================
--- trunk/libs/thread/test/test_2309.cpp (original)
+++ trunk/libs/thread/test/test_2309.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -60,3 +60,16 @@
 
     return tests;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_2741.cpp
==============================================================================
--- trunk/libs/thread/test/test_2741.cpp (original)
+++ trunk/libs/thread/test/test_2741.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -83,3 +83,16 @@
 
   return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_4648.cpp
==============================================================================
--- trunk/libs/thread/test/test_4648.cpp (original)
+++ trunk/libs/thread/test/test_4648.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -13,7 +13,7 @@
   boostThreadLocksTest()
     :myMutex()
      //, myLock(myMutex,boost::defer_lock_t())
- {};
+ {}
 };
 
 int boostThreadLocksTest::firstFunction(boostThreadLocksTest *pBoostThreadLocksTest)
@@ -25,7 +25,7 @@
   std::cout<<"Returning from "<<boost::this_thread::get_id()<<" "<<"firstFunction"<<std::endl;
   return(0);
 }
-int boostThreadLocksTest::secondFunction(boostThreadLocksTest *pBoostThreadLocksTest, boost::upgrade_lock<boost::shared_mutex>& upgr) {
+int boostThreadLocksTest::secondFunction(boostThreadLocksTest */*pBoostThreadLocksTest*/, boost::upgrade_lock<boost::shared_mutex>& upgr) {
   std::cout<<"Before Exclusive Locking "<<boost::this_thread::get_id()<<" "<<"secondFunction"<<std::endl;
   boost::upgrade_to_unique_lock<boost::shared_mutex> localUniqueLock(upgr);
   std::cout<<"After Exclusive Locking "<<boost::this_thread::get_id()<<" "<<"secondFunction"<<std::endl;

Modified: trunk/libs/thread/test/test_5351.cpp
==============================================================================
--- trunk/libs/thread/test/test_5351.cpp (original)
+++ trunk/libs/thread/test/test_5351.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -13,7 +13,7 @@
 }
 
 
-int main(int argc, char** argv)
+int main()
 {
   boost::packaged_task<int> pt(&foo);
   boost::unique_future<int> fi = pt.get_future();

Modified: trunk/libs/thread/test/test_5542_1.cpp
==============================================================================
--- trunk/libs/thread/test/test_5542_1.cpp (original)
+++ trunk/libs/thread/test/test_5542_1.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -42,7 +42,7 @@
     boost::thread m_Thread;
 };
 
-int main(int argc, char* argv[])
+int main()
 {
 // std::cout << "main: startup" << std::endl;
 

Modified: trunk/libs/thread/test/test_5542_3.cpp
==============================================================================
--- trunk/libs/thread/test/test_5542_3.cpp (original)
+++ trunk/libs/thread/test/test_5542_3.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -14,7 +14,7 @@
    std::cout << "Worker: finished" << std::endl;
 }
 
-int main(int argc, char* argv[])
+int main()
 {
     std::cout << "main: startup" << std::endl;
 

Modified: trunk/libs/thread/test/test_6130.cpp
==============================================================================
--- trunk/libs/thread/test/test_6130.cpp (original)
+++ trunk/libs/thread/test/test_6130.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -16,7 +16,8 @@
                  const time_t wait_time = ::time(0)+1;
 
                  boost::mutex::scoped_lock lk(mtx);
- const bool res = cv.timed_wait(lk, boost::posix_time::from_time_t(wait_time));
+ //const bool res =
+ (void)cv.timed_wait(lk, boost::posix_time::from_time_t(wait_time));
                  const time_t end_time = ::time(0);
                  std::cerr << "end_time=" << end_time << " \n";
                  std::cerr << "wait_time=" << wait_time << " \n";

Modified: trunk/libs/thread/test/test_barrier.cpp
==============================================================================
--- trunk/libs/thread/test/test_barrier.cpp (original)
+++ trunk/libs/thread/test/test_barrier.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,7 +1,7 @@
 // Copyright (C) 2001-2003
 // William E. Kempf
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -51,7 +51,7 @@
         g.join_all();
         throw;
     }
-
+
     BOOST_CHECK_EQUAL(global_parameter,5);
 }
 
@@ -64,3 +64,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_condition.cpp
==============================================================================
--- trunk/libs/thread/test/test_condition.cpp (original)
+++ trunk/libs/thread/test/test_condition.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -2,7 +2,7 @@
 // William E. Kempf
 // Copyright (C) 2007 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -45,7 +45,7 @@
     int _val;
 private:
     void operator=(cond_predicate&);
-
+
 };
 
 void condition_test_waits(condition_test_data* data)
@@ -188,3 +188,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_condition_notify_all.cpp
==============================================================================
--- trunk/libs/thread/test/test_condition_notify_all.cpp (original)
+++ trunk/libs/thread/test/test_condition_notify_all.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2007 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -171,7 +171,7 @@
         multiple_wake_cond.wait(lk);
         ++multiple_wake_count;
     }
-
+
 }
 
 
@@ -189,7 +189,7 @@
     multiple_wake_cond.notify_one();
     multiple_wake_cond.notify_all();
     boost::this_thread::sleep(boost::posix_time::milliseconds(200));
-
+
     {
         boost::mutex::scoped_lock lk(multiple_wake_mutex);
         BOOST_CHECK(multiple_wake_count==3);
@@ -220,3 +220,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_condition_notify_one.cpp
==============================================================================
--- trunk/libs/thread/test/test_condition_notify_one.cpp (original)
+++ trunk/libs/thread/test/test_condition_notify_one.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2007 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -15,7 +15,7 @@
 void do_test_condition_notify_one_wakes_from_wait()
 {
     wait_for_flag data;
-
+
     boost::thread thread(bind(&wait_for_flag::wait_without_predicate, data));
 
     {
@@ -31,7 +31,7 @@
 void do_test_condition_notify_one_wakes_from_wait_with_predicate()
 {
     wait_for_flag data;
-
+
     boost::thread thread(bind(&wait_for_flag::wait_with_predicate, data));
 
     {
@@ -47,7 +47,7 @@
 void do_test_condition_notify_one_wakes_from_timed_wait()
 {
     wait_for_flag data;
-
+
     boost::thread thread(bind(&wait_for_flag::timed_wait_without_predicate, data));
 
     {
@@ -63,7 +63,7 @@
 void do_test_condition_notify_one_wakes_from_timed_wait_with_predicate()
 {
     wait_for_flag data;
-
+
     boost::thread thread(bind(&wait_for_flag::timed_wait_with_predicate, data));
 
     {
@@ -79,7 +79,7 @@
 void do_test_condition_notify_one_wakes_from_relative_timed_wait_with_predicate()
 {
     wait_for_flag data;
-
+
     boost::thread thread(bind(&wait_for_flag::relative_timed_wait_with_predicate, data));
 
     {
@@ -104,7 +104,7 @@
         multiple_wake_cond.wait(lk);
         ++multiple_wake_count;
     }
-
+
 }
 
 
@@ -122,7 +122,7 @@
     multiple_wake_cond.notify_one();
     multiple_wake_cond.notify_one();
     boost::this_thread::sleep(boost::posix_time::milliseconds(200));
-
+
     {
         boost::mutex::scoped_lock lk(multiple_wake_mutex);
         BOOST_CHECK(multiple_wake_count==3);
@@ -153,3 +153,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_condition_timed_wait_times_out.cpp
==============================================================================
--- trunk/libs/thread/test/test_condition_timed_wait_times_out.cpp (original)
+++ trunk/libs/thread/test/test_condition_timed_wait_times_out.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2007-8 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -31,7 +31,7 @@
     boost::system_time const start=boost::get_system_time();
     boost::system_time const timeout=start+delay;
 
- while(cond.timed_wait(lock,timeout));
+ while(cond.timed_wait(lock,timeout)) {}
 
     boost::system_time const end=boost::get_system_time();
     BOOST_CHECK((delay-timeout_resolution)<=(end-start));
@@ -79,7 +79,7 @@
     boost::mutex::scoped_lock lock(m);
     boost::system_time const start=boost::get_system_time();
 
- while(cond.timed_wait(lock,delay));
+ while(cond.timed_wait(lock,delay)) {}
 
     boost::system_time const end=boost::get_system_time();
     BOOST_CHECK((delay-timeout_resolution)<=(end-start));
@@ -95,7 +95,7 @@
     boost::system_time const start=boost::get_system_time();
     boost::system_time const timeout=start+delay;
 
- while(cond.timed_wait(lock,timeout));
+ while(cond.timed_wait(lock,timeout)) {}
 
     boost::system_time const end=boost::get_system_time();
     BOOST_CHECK((delay-timeout_resolution)<=(end-start));
@@ -143,7 +143,7 @@
     boost::mutex::scoped_lock lock(m);
     boost::system_time const start=boost::get_system_time();
 
- while(cond.timed_wait(lock,delay));
+ while(cond.timed_wait(lock,delay)) {}
 
     boost::system_time const end=boost::get_system_time();
     BOOST_CHECK((delay-timeout_resolution)<=(end-start));
@@ -171,3 +171,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_futures.cpp
==============================================================================
--- trunk/libs/thread/test/test_futures.cpp (original)
+++ trunk/libs/thread/test/test_futures.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -156,6 +156,7 @@
     try
     {
         i=fi.get();
+ (void)i;
         BOOST_CHECK(false);
     }
     catch(boost::future_uninitialized)
@@ -1242,3 +1243,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_generic_locks.cpp
==============================================================================
--- trunk/libs/thread/test/test_generic_locks.cpp (original)
+++ trunk/libs/thread/test/test_generic_locks.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -18,9 +18,9 @@
 
     BOOST_CHECK(!l1.owns_lock());
     BOOST_CHECK(!l2.owns_lock());
-
+
     boost::lock(l1,l2);
-
+
     BOOST_CHECK(l1.owns_lock());
     BOOST_CHECK(l2.owns_lock());
 }
@@ -30,11 +30,11 @@
     boost::mutex m;
     bool flag;
     boost::condition_variable cond;
-
+
     wait_data():
         flag(false)
     {}
-
+
     void wait()
     {
         boost::mutex::scoped_lock l(m);
@@ -48,7 +48,7 @@
     bool timed_wait(Duration d)
     {
         boost::system_time const target=boost::get_system_time()+d;
-
+
         boost::mutex::scoped_lock l(m);
         while(!flag)
         {
@@ -59,7 +59,7 @@
         }
         return true;
     }
-
+
     void signal()
     {
         boost::mutex::scoped_lock l(m);
@@ -67,7 +67,7 @@
         cond.notify_all();
     }
 };
-
+
 
 void lock_mutexes_slowly(boost::mutex* m1,boost::mutex* m2,wait_data* locked,wait_data* quit)
 {
@@ -90,7 +90,7 @@
     boost::mutex m1,m2;
     wait_data locked;
     wait_data release;
-
+
     boost::thread t(lock_mutexes_slowly,&m1,&m2,&locked,&release);
     boost::this_thread::sleep(boost::posix_time::milliseconds(10));
 
@@ -98,7 +98,7 @@
     BOOST_CHECK(locked.timed_wait(boost::posix_time::seconds(1)));
 
     release.signal();
-
+
     BOOST_CHECK(t2.timed_join(boost::posix_time::seconds(1)));
 
     t.join();
@@ -109,7 +109,7 @@
     boost::mutex m1,m2;
     wait_data locked;
     wait_data release;
-
+
     boost::thread t(lock_mutexes_slowly,&m1,&m2,&locked,&release);
     boost::this_thread::sleep(boost::posix_time::milliseconds(10));
 
@@ -117,7 +117,7 @@
     BOOST_CHECK(locked.timed_wait(boost::posix_time::seconds(1)));
 
     release.signal();
-
+
     BOOST_CHECK(t2.timed_join(boost::posix_time::seconds(1)));
 
     t.join();
@@ -138,9 +138,9 @@
     BOOST_CHECK(!l3.owns_lock());
     BOOST_CHECK(!l4.owns_lock());
     BOOST_CHECK(!l5.owns_lock());
-
+
     boost::lock(l1,l2,l3,l4,l5);
-
+
     BOOST_CHECK(l1.owns_lock());
     BOOST_CHECK(l2.owns_lock());
     BOOST_CHECK(l3.owns_lock());
@@ -179,7 +179,7 @@
     boost::mutex m1,m2,m3,m4,m5;
     wait_data locked;
     wait_data release;
-
+
     boost::thread t(lock_five_mutexes_slowly,&m1,&m2,&m3,&m4,&m5,&locked,&release);
     boost::this_thread::sleep(boost::posix_time::milliseconds(10));
 
@@ -187,7 +187,7 @@
     BOOST_CHECK(locked.timed_wait(boost::posix_time::seconds(3)));
 
     release.signal();
-
+
     BOOST_CHECK(t2.timed_join(boost::posix_time::seconds(3)));
 
     t.join();
@@ -198,7 +198,7 @@
     boost::mutex m1,m2,m3,m4,m5;
     wait_data locked;
     wait_data release;
-
+
     boost::thread t(lock_five_mutexes_slowly,&m1,&m2,&m3,&m4,&m5,&locked,&release);
     boost::this_thread::sleep(boost::posix_time::milliseconds(10));
 
@@ -206,7 +206,7 @@
     BOOST_CHECK(locked.timed_wait(boost::posix_time::seconds(3)));
 
     release.signal();
-
+
     BOOST_CHECK(t2.timed_join(boost::posix_time::seconds(3)));
 
     t.join();
@@ -225,11 +225,11 @@
 void test_lock_ten_other_thread_locks_in_different_order()
 {
     unsigned const num_mutexes=10;
-
+
     boost::mutex mutexes[num_mutexes];
     wait_data locked;
     wait_data release;
-
+
     boost::thread t(lock_five_mutexes_slowly,&mutexes[6],&mutexes[3],&mutexes[8],&mutexes[0],&mutexes[2],&locked,&release);
     boost::this_thread::sleep(boost::posix_time::milliseconds(10));
 
@@ -246,16 +246,16 @@
 struct dummy_mutex
 {
     bool is_locked;
-
+
     dummy_mutex():
         is_locked(false)
     {}
-
+
     void lock()
     {
         is_locked=true;
     }
-
+
     bool try_lock()
     {
         if(is_locked)
@@ -265,7 +265,7 @@
         is_locked=true;
         return true;
     }
-
+
     void unlock()
     {
         is_locked=false;
@@ -289,7 +289,7 @@
     dummy_mutex mutexes[num_mutexes];
 
     boost::lock(mutexes,mutexes+num_mutexes);
-
+
     for(unsigned i=0;i<num_mutexes;++i)
     {
         BOOST_CHECK(mutexes[i].is_locked);
@@ -306,7 +306,7 @@
     explicit dummy_iterator(dummy_mutex* p_):
         p(p_)
     {}
-
+
     bool operator==(dummy_iterator const& other) const
     {
         return p==other.p;
@@ -321,7 +321,7 @@
     {
         return p<other.p;
     }
-
+
     dummy_mutex& operator*() const
     {
         return *p;
@@ -331,22 +331,22 @@
     {
         return p;
     }
-
+
     dummy_iterator operator++(int)
     {
         dummy_iterator temp(*this);
         ++p;
         return temp;
     }
-
+
     dummy_iterator& operator++()
     {
         ++p;
         return *this;
     }
-
+
 };
-
+
 
 void test_lock_five_in_range_custom_iterator()
 {
@@ -354,7 +354,7 @@
     dummy_mutex mutexes[num_mutexes];
 
     boost::lock(dummy_iterator(mutexes),dummy_iterator(mutexes+num_mutexes));
-
+
     for(unsigned i=0;i<num_mutexes;++i)
     {
         BOOST_CHECK(mutexes[i].is_locked);
@@ -372,7 +372,7 @@
     dummy_mutex2 mutexes[num_mutexes];
 
     boost::lock(mutexes,mutexes+num_mutexes);
-
+
     for(unsigned i=0;i<num_mutexes;++i)
     {
         BOOST_CHECK(mutexes[i].is_locked);
@@ -384,7 +384,7 @@
     dummy_mutex m1,m2;
 
     int const res=boost::try_lock(m1,m2);
-
+
     BOOST_CHECK(res==-1);
     BOOST_CHECK(m1.is_locked);
     BOOST_CHECK(m2.is_locked);
@@ -398,7 +398,7 @@
         l2(m2,boost::defer_lock);
 
     int const res=boost::try_lock(l1,l2);
-
+
     BOOST_CHECK(res==0);
     BOOST_CHECK(m1.is_locked);
     BOOST_CHECK(!m2.is_locked);
@@ -414,7 +414,7 @@
         l2(m2,boost::defer_lock);
 
     int const res=boost::try_lock(l1,l2);
-
+
     BOOST_CHECK(res==1);
     BOOST_CHECK(!m1.is_locked);
     BOOST_CHECK(m2.is_locked);
@@ -425,7 +425,7 @@
 void test_try_lock_three()
 {
     int const num_mutexes=3;
-
+
     for(int i=-1;i<num_mutexes;++i)
     {
         dummy_mutex mutexes[num_mutexes];
@@ -439,7 +439,7 @@
             l3(mutexes[2],boost::defer_lock);
 
         int const res=boost::try_lock(l1,l2,l3);
-
+
         BOOST_CHECK(res==i);
         for(int j=0;j<num_mutexes;++j)
         {
@@ -470,7 +470,7 @@
 void test_try_lock_four()
 {
     int const num_mutexes=4;
-
+
     for(int i=-1;i<num_mutexes;++i)
     {
         dummy_mutex mutexes[num_mutexes];
@@ -485,7 +485,7 @@
             l4(mutexes[3],boost::defer_lock);
 
         int const res=boost::try_lock(l1,l2,l3,l4);
-
+
         BOOST_CHECK(res==i);
         for(int j=0;j<num_mutexes;++j)
         {
@@ -518,7 +518,7 @@
 void test_try_lock_five()
 {
     int const num_mutexes=5;
-
+
     for(int i=-1;i<num_mutexes;++i)
     {
         dummy_mutex mutexes[num_mutexes];
@@ -534,7 +534,7 @@
             l5(mutexes[4],boost::defer_lock);
 
         int const res=boost::try_lock(l1,l2,l3,l4,l5);
-
+
         BOOST_CHECK(res==i);
         for(int j=0;j<num_mutexes;++j)
         {
@@ -592,3 +592,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_hardware_concurrency.cpp
==============================================================================
--- trunk/libs/thread/test/test_hardware_concurrency.cpp (original)
+++ trunk/libs/thread/test/test_hardware_concurrency.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2007 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/thread/thread.hpp>
 #include <boost/test/unit_test.hpp>
@@ -19,3 +19,16 @@
     test->add(BOOST_TEST_CASE(test_hardware_concurrency_is_non_zero));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_lock_concept.cpp
==============================================================================
--- trunk/libs/thread/test/test_lock_concept.cpp (original)
+++ trunk/libs/thread/test/test_lock_concept.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -367,7 +367,7 @@
         Lock l;
         BOOST_CHECK(!l.mutex());
         BOOST_CHECK(!l.owns_lock());
- };
+ }
 };
 
 
@@ -571,3 +571,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_move_function.cpp
==============================================================================
--- trunk/libs/thread/test/test_move_function.cpp (original)
+++ trunk/libs/thread/test/test_move_function.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -144,3 +144,16 @@
     test->add(BOOST_TEST_CASE(test_move_for_user_defined_type_unaffected));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_mutex.cpp
==============================================================================
--- trunk/libs/thread/test/test_mutex.cpp (original)
+++ trunk/libs/thread/test/test_mutex.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,7 +1,7 @@
 // Copyright (C) 2001-2003
 // William E. Kempf
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -101,13 +101,13 @@
 struct test_lock_times_out_if_other_thread_has_lock
 {
     typedef boost::unique_lock<Mutex> Lock;
-
+
     Mutex m;
     boost::mutex done_mutex;
     bool done;
     bool locked;
     boost::condition_variable done_cond;
-
+
     test_lock_times_out_if_other_thread_has_lock():
         done(false),locked(false)
     {}
@@ -139,14 +139,14 @@
     }
 
     typedef test_lock_times_out_if_other_thread_has_lock<Mutex> this_type;
-
+
     void do_test(void (this_type::*test_func)())
     {
         Lock lock(m);
 
         locked=false;
         done=false;
-
+
         boost::thread t(test_func,this);
 
         try
@@ -157,7 +157,7 @@
                                                  boost::bind(&this_type::is_done,this)));
                 BOOST_CHECK(!locked);
             }
-
+
             lock.unlock();
             t.join();
         }
@@ -168,7 +168,7 @@
             throw;
         }
     }
-
+
 
     void operator()()
     {
@@ -191,7 +191,7 @@
     void operator()()
     {
         test_lock_times_out_if_other_thread_has_lock<mutex_type>()();
-
+
         mutex_type mutex;
         boost::condition condition;
 
@@ -243,7 +243,7 @@
         BOOST_CHECK(lock ? true : false);
         lock.unlock();
         BOOST_CHECK(!lock);
-
+
     }
 };
 
@@ -345,3 +345,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_once.cpp
==============================================================================
--- trunk/libs/thread/test/test_once.cpp (original)
+++ trunk/libs/thread/test/test_once.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -68,7 +68,7 @@
     explicit increment_value(int* value_):
         value(value_)
     {}
-
+
     void operator()() const
     {
         boost::mutex::scoped_lock lock(m);
@@ -124,7 +124,7 @@
     {};
 
     static unsigned pass_counter;
-
+
     void operator()() const
     {
         boost::mutex::scoped_lock lock(m);
@@ -189,3 +189,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_shared_mutex.cpp
==============================================================================
--- trunk/libs/thread/test/test_shared_mutex.cpp (original)
+++ trunk/libs/thread/test/test_shared_mutex.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -18,7 +18,7 @@
 void test_multiple_readers()
 {
     unsigned const number_of_threads=10;
-
+
     boost::thread_group pool;
 
     boost::shared_mutex rw_mutex;
@@ -65,7 +65,7 @@
 void test_only_one_writer_permitted()
 {
     unsigned const number_of_threads=10;
-
+
     boost::thread_group pool;
 
     boost::shared_mutex rw_mutex;
@@ -76,7 +76,7 @@
     boost::condition_variable unblocked_condition;
     boost::mutex finish_mutex;
     boost::mutex::scoped_lock finish_lock(finish_mutex);
-
+
     try
     {
         for(unsigned i=0;i<number_of_threads;++i)
@@ -116,10 +116,10 @@
     boost::condition_variable unblocked_condition;
     boost::mutex finish_mutex;
     boost::mutex::scoped_lock finish_lock(finish_mutex);
-
+
     try
     {
-
+
         pool.create_thread(locking_thread<boost::shared_lock<boost::shared_mutex> >(rw_mutex,unblocked_count,unblocked_count_mutex,unblocked_condition,
                                                                                     finish_mutex,simultaneous_running_count,max_simultaneous_running));
         {
@@ -177,7 +177,7 @@
         CHECK_LOCKED_VALUE_EQUAL(unblocked_count_mutex,unblocked_count,0U);
 
         write_lock.unlock();
-
+
         {
             boost::mutex::scoped_lock lk(unblocked_count_mutex);
             while(unblocked_count<reader_count)
@@ -283,3 +283,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_shared_mutex_part_2.cpp
==============================================================================
--- trunk/libs/thread/test/test_shared_mutex_part_2.cpp (original)
+++ trunk/libs/thread/test/test_shared_mutex_part_2.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -21,9 +21,9 @@
     boost::mutex& finish_mutex;
     boost::mutex& unblocked_mutex;
     unsigned& unblocked_count;
-
+
     void operator=(simple_upgrade_thread&);
-
+
 public:
     simple_upgrade_thread(boost::shared_mutex& rwm_,
                           boost::mutex& finish_mutex_,
@@ -32,16 +32,16 @@
         rwm(rwm_),finish_mutex(finish_mutex_),
         unblocked_mutex(unblocked_mutex_),unblocked_count(unblocked_count_)
     {}
-
+
     void operator()()
     {
         boost::upgrade_lock<boost::shared_mutex> lk(rwm);
-
+
         {
             boost::mutex::scoped_lock ulk(unblocked_mutex);
             ++unblocked_count;
         }
-
+
         boost::mutex::scoped_lock flk(finish_mutex);
     }
 };
@@ -50,7 +50,7 @@
 void test_only_one_upgrade_lock_permitted()
 {
     unsigned const number_of_threads=10;
-
+
     boost::thread_group pool;
 
     boost::shared_mutex rw_mutex;
@@ -61,7 +61,7 @@
     boost::condition_variable unblocked_condition;
     boost::mutex finish_mutex;
     boost::mutex::scoped_lock finish_lock(finish_mutex);
-
+
     try
     {
         for(unsigned i=0;i<number_of_threads;++i)
@@ -297,3 +297,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_shared_mutex_timed_locks.cpp
==============================================================================
--- trunk/libs/thread/test/test_shared_mutex_timed_locks.cpp (original)
+++ trunk/libs/thread/test/test_shared_mutex_timed_locks.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -237,7 +237,7 @@
     {
         rw_mutex.unlock();
     }
-
+
     boost::posix_time::milliseconds const wait_duration(500);
     timed_lock_succeeded=rw_mutex.timed_lock_shared(wait_duration);
     BOOST_CHECK(timed_lock_succeeded);
@@ -266,3 +266,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_shared_mutex_timed_locks_chrono.cpp
==============================================================================
--- trunk/libs/thread/test/test_shared_mutex_timed_locks_chrono.cpp (original)
+++ trunk/libs/thread/test/test_shared_mutex_timed_locks_chrono.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -273,3 +273,16 @@
 #error "Test not applicable: BOOST_THREAD_USES_CHRONO not defined for this platform as not supported"
 #endif
 
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_thread.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread.cpp (original)
+++ trunk/libs/thread/test/test_thread.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -2,7 +2,7 @@
 // William E. Kempf
 // Copyright (C) 2008 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -28,7 +28,7 @@
 void comparison_thread(boost::thread::id parent)
 {
     boost::thread::id const my_id=boost::this_thread::get_id();
-
+
     BOOST_CHECK(my_id != parent);
     boost::thread::id const my_id2=boost::this_thread::get_id();
     BOOST_CHECK(my_id == my_id2);
@@ -44,7 +44,7 @@
 
     // Ensure it's in a range instead of checking actual equality due to time
     // lapse
- BOOST_CHECK(in_range(xt, 2));
+ BOOST_CHECK(boost::threads::test::in_range(xt, 2));
 }
 
 void do_test_creation()
@@ -125,11 +125,11 @@
     boost::noncopyable
 {
     unsigned value;
-
+
     non_copyable_functor():
         value(0)
     {}
-
+
     void operator()()
     {
         value=999;
@@ -139,7 +139,7 @@
 void do_test_creation_through_reference_wrapper()
 {
     non_copyable_functor f;
-
+
     boost::thread thrd(boost::ref(f));
     thrd.join();
     BOOST_CHECK_EQUAL(f.value, 999u);
@@ -155,11 +155,11 @@
     boost::condition_variable cond;
     boost::mutex mut;
     bool done;
-
+
     long_running_thread():
         done(false)
     {}
-
+
     void operator()()
     {
         boost::mutex::scoped_lock lk(mut);
@@ -177,7 +177,7 @@
     BOOST_CHECK(thrd.joinable());
     boost::system_time xt=delay(3);
     bool const joined=thrd.timed_join(xt);
- BOOST_CHECK(in_range(boost::get_xtime(xt), 2));
+ BOOST_CHECK(boost::threads::test::in_range(boost::get_xtime(xt), 2));
     BOOST_CHECK(!joined);
     BOOST_CHECK(thrd.joinable());
     {
@@ -185,7 +185,7 @@
         f.done=true;
         f.cond.notify_one();
     }
-
+
     xt=delay(3);
     bool const joined2=thrd.timed_join(xt);
     boost::system_time const now=boost::get_system_time();
@@ -209,7 +209,7 @@
     t.swap(t2);
     BOOST_CHECK(t.get_id()==id2);
     BOOST_CHECK(t2.get_id()==id1);
-
+
     swap(t,t2);
     BOOST_CHECK(t.get_id()==id1);
     BOOST_CHECK(t2.get_id()==id2);
@@ -232,3 +232,17 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/test_thread_exit.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_exit.cpp (original)
+++ trunk/libs/thread/test/test_thread_exit.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,4 +1,4 @@
-// (C) Copyright 2009 Anthony Williams
+// (C) Copyright 2009 Anthony Williams
 //
 // Distributed under the Boost Software License, Version 1.0. (See
 // accompanying file LICENSE_1_0.txt or copy at
@@ -71,3 +71,16 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_thread_id.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_id.cpp (original)
+++ trunk/libs/thread/test/test_thread_id.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2007 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/thread/thread.hpp>
 #include <boost/test/unit_test.hpp>
@@ -61,7 +61,7 @@
     BOOST_CHECK((t3.get_id()<t.get_id()) == (t.get_id()>=t3.get_id()));
     BOOST_CHECK((t2.get_id()<t3.get_id()) == (t3.get_id()>=t2.get_id()));
     BOOST_CHECK((t3.get_id()<t2.get_id()) == (t2.get_id()>=t3.get_id()));
-
+
     BOOST_CHECK((t.get_id()<=t2.get_id()) == (t2.get_id()>t.get_id()));
     BOOST_CHECK((t2.get_id()<=t.get_id()) == (t.get_id()>t2.get_id()));
     BOOST_CHECK((t.get_id()<=t3.get_id()) == (t3.get_id()>t.get_id()));
@@ -111,7 +111,7 @@
     BOOST_CHECK(!(default_id > t.get_id()));
     BOOST_CHECK(!(default_id > t2.get_id()));
     BOOST_CHECK(!(default_id > t3.get_id()));
-
+
     BOOST_CHECK(!(default_id >= t.get_id()));
     BOOST_CHECK(!(default_id >= t2.get_id()));
     BOOST_CHECK(!(default_id >= t3.get_id()));
@@ -120,7 +120,7 @@
     t2.join();
     t3.join();
 }
-
+
 void get_thread_id(boost::thread::id* id)
 {
     *id=boost::this_thread::get_id();
@@ -147,3 +147,16 @@
     test->add(BOOST_TEST_CASE(test_thread_id_of_running_thread_returned_by_this_thread_get_id));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+}

Modified: trunk/libs/thread/test/test_thread_launching.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_launching.cpp (original)
+++ trunk/libs/thread/test/test_thread_launching.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2007-8 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/thread/thread.hpp>
 #include <boost/test/unit_test.hpp>
@@ -40,7 +40,7 @@
 struct callable_no_args
 {
     static bool called;
-
+
     void operator()() const
     {
         called=true;
@@ -61,7 +61,7 @@
     boost::noncopyable
 {
     static bool called;
-
+
     void operator()() const
     {
         called=true;
@@ -73,7 +73,7 @@
 void test_thread_callable_object_ref_no_arguments()
 {
     callable_noncopyable_no_args func;
-
+
     boost::thread callable(boost::ref(func));
     callable.join();
     BOOST_CHECK(callable_noncopyable_no_args::called);
@@ -83,7 +83,7 @@
 {
     static bool called;
     static int called_arg;
-
+
     void operator()(int arg) const
     {
         called=true;
@@ -112,7 +112,7 @@
     static std::string called_three_arg1;
     static std::vector<int> called_three_arg2;
     static int called_three_arg3;
-
+
     void operator()(int arg1,double arg2) const
     {
         called_two=true;
@@ -157,11 +157,11 @@
     {
         BOOST_CHECK_EQUAL(callable_multiple_arg::called_three_arg2.at(j),x[j]);
     }
-
+
     BOOST_CHECK_EQUAL(callable_multiple_arg::called_three_arg3,1);
 
     double const dbl=1.234;
-
+
     boost::thread callable2(func,19,dbl);
     callable2.join();
     BOOST_CHECK(callable_multiple_arg::called_two);
@@ -178,7 +178,7 @@
         function_called(false),
         arg_value(0)
     {}
-
+
 
     void f0()
     {
@@ -195,7 +195,7 @@
 void test_thread_member_function_no_arguments()
 {
     X x;
-
+
     boost::thread function(&X::f0,&x);
     function.join();
     BOOST_CHECK(x.function_called);
@@ -226,3 +226,17 @@
     test->add(BOOST_TEST_CASE(test_thread_member_function_one_argument));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/test_thread_move.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_move.cpp (original)
+++ trunk/libs/thread/test/test_thread_move.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -54,3 +54,17 @@
     test->add(BOOST_TEST_CASE(test_move_assign));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/test_thread_move_return.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_move_return.cpp (original)
+++ trunk/libs/thread/test/test_thread_move_return.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -1,6 +1,6 @@
 // Copyright (C) 2009 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 #include <boost/thread/thread.hpp>
 #include <boost/test/unit_test.hpp>
@@ -33,3 +33,17 @@
     test->add(BOOST_TEST_CASE(test_move_from_function_move_return));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/test_thread_return_local.cpp
==============================================================================
--- trunk/libs/thread/test/test_thread_return_local.cpp (original)
+++ trunk/libs/thread/test/test_thread_return_local.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -33,3 +33,17 @@
     test->add(BOOST_TEST_CASE(test_move_from_function_return_local));
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/test_tss.cpp
==============================================================================
--- trunk/libs/thread/test/test_tss.cpp (original)
+++ trunk/libs/thread/test/test_tss.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -2,7 +2,7 @@
 // William E. Kempf
 // Copyright (C) 2007 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -19,7 +19,7 @@
 
 #if defined(BOOST_HAS_WINTHREADS)
     #define WIN32_LEAN_AND_MEAN
- #include <windows.h>
+ #include <windows.h>
 #endif
 
 boost::mutex check_mutex;
@@ -76,7 +76,7 @@
     {
         native_thread_t const res=CreateThread(
             0, //security attributes (0 = not inheritable)
- 0, //stack size (0 = default)
+ 0, //stack size (0 = default)
             &test_tss_thread_native, //function to execute
             0, //parameter to pass to function
             0, //creation flags (0 = run immediately)
@@ -99,7 +99,7 @@
 
 extern "C"
 {
- void* test_tss_thread_native(void* lpParameter)
+ void* test_tss_thread_native(void* )
     {
         test_tss_thread();
         return 0;
@@ -109,7 +109,7 @@
     native_thread_t create_native_thread()
     {
         native_thread_t thread_handle;
-
+
         int const res = pthread_create(&thread_handle, 0, &test_tss_thread_native, 0);
         BOOST_CHECK(!res);
         return thread_handle;
@@ -261,12 +261,12 @@
 struct dummy_class_tracks_deletions
 {
     static unsigned deletions;
-
+
     ~dummy_class_tracks_deletions()
     {
         ++deletions;
     }
-
+
 };
 
 unsigned dummy_class_tracks_deletions::deletions=0;
@@ -357,3 +357,17 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/test_xtime.cpp
==============================================================================
--- trunk/libs/thread/test/test_xtime.cpp (original)
+++ trunk/libs/thread/test/test_xtime.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -2,7 +2,7 @@
 // William E. Kempf
 // Copyright (C) 2008 Anthony Williams
 //
-// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/thread/detail/config.hpp>
@@ -85,7 +85,7 @@
     boost::condition_variable cond;
     boost::condition_variable_any cond_any;
     boost::mutex m;
-
+
     boost::mutex::scoped_lock lk(m);
     cond.timed_wait(lk,boost::get_xtime(boost::get_system_time()+boost::posix_time::milliseconds(10)));
     cond.timed_wait(lk,boost::get_xtime(boost::get_system_time()+boost::posix_time::milliseconds(10)),predicate);
@@ -107,3 +107,17 @@
 
     return test;
 }
+
+void remove_unused_warning()
+{
+
+ //../../../boost/test/results_collector.hpp:40:13: warning: unused function 'first_failed_assertion' [-Wunused-function]
+ //(void)boost::unit_test::first_failed_assertion;
+
+ //../../../boost/test/tools/floating_point_comparison.hpp:304:25: warning: unused variable 'check_is_close' [-Wunused-variable]
+ //../../../boost/test/tools/floating_point_comparison.hpp:326:25: warning: unused variable 'check_is_small' [-Wunused-variable]
+ (void)boost::test_tools::check_is_close;
+ (void)boost::test_tools::check_is_small;
+
+
+}

Modified: trunk/libs/thread/test/threads/thread/assign/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/assign/copy_fail.cpp (original)
+++ trunk/libs/thread/test/threads/thread/assign/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -67,3 +67,14 @@
   }
 }
 
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+
+}

Modified: trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/constr/FArgs_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -25,7 +25,11 @@
 
 unsigned throw_one = 0xFFFF;
 
+#if defined _GLIBCXX_THROW
+void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
+#else
 void* operator new(std::size_t s) throw (std::bad_alloc)
+#endif
 {
   std::cout << __FILE__ << ":" << __LINE__ << std::endl;
   if (throw_one == 0) throw std::bad_alloc();

Modified: trunk/libs/thread/test/threads/thread/constr/F_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/constr/F_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/constr/F_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -25,7 +25,11 @@
 
 unsigned throw_one = 0xFFFF;
 
+#if defined _GLIBCXX_THROW
+void* operator new(std::size_t s) _GLIBCXX_THROW (std::bad_alloc)
+#else
 void* operator new(std::size_t s) throw (std::bad_alloc)
+#endif
 {
   std::cout << __FILE__ << ":" << __LINE__ << std::endl;
   if (throw_one == 0) throw std::bad_alloc();

Modified: trunk/libs/thread/test/threads/thread/constr/copy_fail.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/constr/copy_fail.cpp (original)
+++ trunk/libs/thread/test/threads/thread/constr/copy_fail.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -81,3 +81,15 @@
     BOOST_TEST(G::op_run);
   }
 }
+
+void remove_unused_warning()
+{
+ //../../../boost/system/error_code.hpp:214:36: warning: Ôboost::system::posix_categoryÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:215:36: warning: Ôboost::system::errno_ecatÕ defined but not used [-Wunused-variable]
+ //../../../boost/system/error_code.hpp:216:36: warning: Ôboost::system::native_ecatÕ defined but not used [-Wunused-variable]
+
+ (void)boost::system::posix_category;
+ (void)boost::system::errno_ecat;
+ (void)boost::system::native_ecat;
+
+}

Modified: trunk/libs/thread/test/threads/thread/members/get_id_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/members/get_id_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/members/get_id_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -61,7 +61,7 @@
 {
   {
     boost::thread t0( (G()));
- boost::thread::id id0 = t0.get_id();
+ //boost::thread::id id0 = t0.get_id();
     boost::thread t1;
     boost::thread::id id1 = t1.get_id();
     BOOST_TEST(t0.get_id() != id1);

Modified: trunk/libs/thread/test/threads/thread/members/native_handle_pass.cpp
==============================================================================
--- trunk/libs/thread/test/threads/thread/members/native_handle_pass.cpp (original)
+++ trunk/libs/thread/test/threads/thread/members/native_handle_pass.cpp 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -61,7 +61,8 @@
 {
   {
     boost::thread t0( (G()));
- boost::thread::native_handle_type hdl = t0.native_handle();
+ // boost::thread::native_handle_type hdl =
+ (void)t0.native_handle();
     t0.join();
   }
 

Modified: trunk/libs/thread/test/util.inl
==============================================================================
--- trunk/libs/thread/test/util.inl (original)
+++ trunk/libs/thread/test/util.inl 2012-04-09 11:26:40 EDT (Mon, 09 Apr 2012)
@@ -19,6 +19,8 @@
 
 // boostinspect:nounnamed
 
+
+
 namespace
 {
 inline boost::xtime delay(int secs, int msecs=0, int nsecs=0)
@@ -41,6 +43,13 @@
     return xt;
 }
 
+}
+namespace boost
+{
+namespace threads
+{
+namespace test
+{
 inline bool in_range(const boost::xtime& xt, int secs=1)
 {
     boost::xtime min = delay(-secs);
@@ -48,7 +57,13 @@
     return (boost::xtime_cmp(xt, min) >= 0) &&
         (boost::xtime_cmp(xt, max) <= 0);
 }
+}
+}
+}
 
+
+namespace
+{
 class execution_monitor
 {
 public:


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