Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79985 - in trunk: boost/thread boost/thread/detail boost/thread/pthread boost/thread/win32 libs/thread/src libs/thread/test libs/thread/test/sync/conditions/condition_variable libs/thread/test/sync/conditions/condition_variable_any libs/thread/test/sync/futures/future libs/thread/test/sync/futures/packaged_task libs/thread/test/sync/futures/promise libs/thread/test/sync/mutual_exclusion/locks/lock_guard libs/thread/test/sync/mutual_exclusion/locks/reverse_lock libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons libs/thread/test/sync/mutual_exclusion/locks/shared_lock_guard libs/thread/test/sync/mutual_exclusion/locks/unique_lock/cons libs/thread/test/sync/mutual_exclusion/locks/unique_lock/obs libs/thread/test/sync/mutual_exclusion/locks/upgrade_lock/cons libs/thread/test/sync/mutual_exclusion/mutex libs/thread/test/sync/mutual_exclusion/recursive_mutex libs/thread/test/sync/mutual_exclusion/recursive_timed_mutex libs/thread/test/sync/mutual_exclusion/shared_mutex libs/thread/test/sync/mutual_exclusion/timed_mutex libs/thread/test/threads/thread/assign libs/thread/test/threads/thread/constr
From: vicente.botet_at_[hidden]
Date: 2012-08-12 14:33:16


Author: viboes
Date: 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
New Revision: 79985
URL: http://svn.boost.org/trac/boost/changeset/79985

Log:
Thread: fixes for inspection report
Added:
   trunk/libs/thread/test/remove_error_code_unused_warning.hpp (contents, props changed)
Text files modified:
   trunk/boost/thread/detail/delete.hpp | 6 +-
   trunk/boost/thread/detail/memory.hpp | 103 +++++++++++++++++++++++++++++++++++++++
   trunk/boost/thread/detail/move.hpp | 6 +-
   trunk/boost/thread/detail/thread.hpp | 8 +-
   trunk/boost/thread/locks.hpp | 12 ++--
   trunk/boost/thread/pthread/thread_heap_alloc.hpp | 8 +-
   trunk/boost/thread/win32/thread_heap_alloc.hpp | 2
   trunk/libs/thread/src/tss_null.cpp | 4
   trunk/libs/thread/test/no_implicit_assign_from_lvalue_thread.cpp | 12 ----
   trunk/libs/thread/test/no_implicit_move_from_lvalue_thread.cpp | 12 ----
   trunk/libs/thread/test/sync/conditions/condition_variable/assign_fail.cpp | 10 ---
   trunk/libs/thread/test/sync/conditions/condition_variable/copy_fail.cpp | 10 ---
   trunk/libs/thread/test/sync/conditions/condition_variable_any/assign_fail.cpp | 10 ---
   trunk/libs/thread/test/sync/conditions/condition_variable_any/copy_fail.cpp | 10 ---
   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/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 | 11 ---
   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 | 11 ---
   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 | 11 ---
   trunk/libs/thread/test/test_2309.cpp | 72 +++++++++++++-------------
   trunk/libs/thread/test/test_2501.cpp | 5 +
   trunk/libs/thread/test/test_4521.cpp | 5 +
   trunk/libs/thread/test/test_4648.cpp | 5 +
   trunk/libs/thread/test/test_4882.cpp | 5 +
   trunk/libs/thread/test/test_5351.cpp | 5 +
   trunk/libs/thread/test/test_5502.cpp | 5 +
   trunk/libs/thread/test/test_5542_1.cpp | 5 +
   trunk/libs/thread/test/test_5542_2.cpp | 5 +
   trunk/libs/thread/test/test_5542_3.cpp | 5 +
   trunk/libs/thread/test/test_6130.cpp | 5 +
   trunk/libs/thread/test/test_6170.cpp | 5 +
   trunk/libs/thread/test/test_ml.cpp | 5 +
   trunk/libs/thread/test/threads/thread/assign/copy_fail.cpp | 12 ----
   trunk/libs/thread/test/threads/thread/constr/copy_fail.cpp | 11 ---
   58 files changed, 258 insertions(+), 404 deletions(-)

Modified: trunk/boost/thread/detail/delete.hpp
==============================================================================
--- trunk/boost/thread/detail/delete.hpp (original)
+++ trunk/boost/thread/detail/delete.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -15,14 +15,14 @@
  * BOOST_THREAD_DELETE_COPY_ASSIGN deletes the copy assignment when the compiler supports it or
  * makes it private.
  */
-#ifndef BOOST_NO_DELETED_FUNCTIONS
+#ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS
 #define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
       CLASS(CLASS const&) = delete; \
 
 #define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
       CLASS& operator=(CLASS const&) = delete;
 
-#else // BOOST_NO_DELETED_FUNCTIONS
+#else // BOOST_NO_CXX11_DELETED_FUNCTIONS
 #define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
     private: \
       CLASS(CLASS&); \
@@ -32,7 +32,7 @@
     private: \
       CLASS& operator=(CLASS&); \
     public:
-#endif // BOOST_NO_DELETED_FUNCTIONS
+#endif // BOOST_NO_CXX11_DELETED_FUNCTIONS
 
 /**
  * BOOST_THREAD_NO_COPYABLE deletes the copy constructor and assignment when the compiler supports it or

Modified: trunk/boost/thread/detail/memory.hpp
==============================================================================
--- trunk/boost/thread/detail/memory.hpp (original)
+++ trunk/boost/thread/detail/memory.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -11,9 +11,15 @@
 #ifndef BOOST_THREAD_DETAIL_MEMORY_HPP
 #define BOOST_THREAD_DETAIL_MEMORY_HPP
 
+#include <boost/config.hpp>
 #include <boost/container/allocator_traits.hpp>
 #include <boost/container/scoped_allocator.hpp>
-#include <boost/config.hpp>
+#include <boost/type_traits/remove_cv.hpp>
+#include <boost/type_traits/is_convertible.hpp>
+#include <boost/type_traits/is_scalar.hpp>
+#include <boost/type_traits/is_pointer.hpp>
+#include <boost/type_traits/is_same.hpp>
+#include <boost/static_assert.hpp>
 
 namespace boost
 {
@@ -48,6 +54,101 @@
   {
   };
 
+ template <class Ptr>
+ struct pointer_traits
+ {
+ typedef Ptr pointer;
+// typedef <details> element_type;
+// typedef <details> difference_type;
+
+// template <class U> using rebind = <details>;
+//
+// static pointer pointer_to(<details>);
+ };
+
+ template <class T>
+ struct pointer_traits<T*>
+ {
+ typedef T* pointer;
+ typedef T element_type;
+ typedef ptrdiff_t difference_type;
+
+// template <class U> using rebind = U*;
+//
+// static pointer pointer_to(<details>) noexcept;
+ };
+
+
+ namespace thread_detail {
+ template <class _Ptr1, class _Ptr2,
+ bool = is_same<typename remove_cv<typename pointer_traits<_Ptr1>::element_type>::type,
+ typename remove_cv<typename pointer_traits<_Ptr2>::element_type>::type
+ >::value
+ >
+ struct same_or_less_cv_qualified_imp
+ : is_convertible<_Ptr1, _Ptr2> {};
+
+ template <class _Ptr1, class _Ptr2>
+ struct same_or_less_cv_qualified_imp<_Ptr1, _Ptr2, false>
+ : false_type {};
+
+ template <class _Ptr1, class _Ptr2, bool = is_scalar<_Ptr1>::value &&
+ !is_pointer<_Ptr1>::value>
+ struct same_or_less_cv_qualified
+ : same_or_less_cv_qualified_imp<_Ptr1, _Ptr2> {};
+
+ template <class _Ptr1, class _Ptr2>
+ struct same_or_less_cv_qualified<_Ptr1, _Ptr2, true>
+ : false_type {};
+
+ }
+ template <class T>
+ struct BOOST_SYMBOL_VISIBLE default_delete
+ {
+ #ifndef BOOST_NO_DEFAULTED_FUNCTIONS
+ BOOST_SYMBOL_VISIBLE
+ BOOST_CONSTEXPR default_delete() = default;
+ #else
+ BOOST_SYMBOL_VISIBLE
+ BOOST_CONSTEXPR default_delete() BOOST_NOEXCEPT {}
+ #endif
+ template <class U>
+ BOOST_SYMBOL_VISIBLE
+ default_delete(const default_delete<U>&,
+ typename enable_if<is_convertible<U*, T*> >::type* = 0) BOOST_NOEXCEPT {}
+ BOOST_SYMBOL_VISIBLE
+ void operator() (T* ptr) const BOOST_NOEXCEPT
+ {
+ BOOST_STATIC_ASSERT_MSG(sizeof(T) > 0, "default_delete can not delete incomplete type");
+ delete ptr;
+ }
+ };
+
+ template <class T>
+ struct BOOST_SYMBOL_VISIBLE default_delete<T[]>
+ {
+ public:
+ #ifndef BOOST_NO_DEFAULTED_FUNCTIONS
+ BOOST_SYMBOL_VISIBLE
+ BOOST_CONSTEXPR default_delete() = default;
+ #else
+ BOOST_SYMBOL_VISIBLE
+ BOOST_CONSTEXPR default_delete() BOOST_NOEXCEPT {}
+ #endif
+ template <class U>
+ BOOST_SYMBOL_VISIBLE
+ default_delete(const default_delete<U[]>&,
+ typename enable_if<thread_detail::same_or_less_cv_qualified<U*, T*> >::type* = 0) BOOST_NOEXCEPT {}
+ template <class U>
+ BOOST_SYMBOL_VISIBLE
+ void operator() (U* ptr,
+ typename enable_if<thread_detail::same_or_less_cv_qualified<U*, T*> >::type* = 0) const BOOST_NOEXCEPT
+ {
+ BOOST_STATIC_ASSERT_MSG(sizeof(T) > 0, "default_delete can not delete incomplete type");
+ delete [] ptr;
+ }
+ };
+
 } // namespace boost
 
 

Modified: trunk/boost/thread/detail/move.hpp
==============================================================================
--- trunk/boost/thread/detail/move.hpp (original)
+++ trunk/boost/thread/detail/move.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -84,7 +84,7 @@
       {}; \
     }
 
-#elif ! defined BOOST_NO_RVALUE_REFERENCES && defined BOOST_MSVC
+#elif ! defined BOOST_NO_CXX11_RVALUE_REFERENCES && defined BOOST_MSVC
 
 #define BOOST_THREAD_RV_REF(TYPE) BOOST_RV_REF(TYPE)
 #define BOOST_THREAD_RV_REF_BEG BOOST_RV_REF_BEG
@@ -176,7 +176,7 @@
 #endif
 
 
-#if ! defined BOOST_NO_RVALUE_REFERENCES
+#if ! defined BOOST_NO_CXX11_RVALUE_REFERENCES
 
 #define BOOST_THREAD_MOVABLE(TYPE)
 
@@ -227,7 +227,7 @@
 
 
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 namespace boost
 { namespace thread_detail
   {

Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -52,7 +52,7 @@
         {
         public:
             BOOST_THREAD_NO_COPYABLE(thread_data)
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
               thread_data(BOOST_THREAD_RV_REF(F) f_):
                 f(boost::forward<F>(f_))
               {}
@@ -131,7 +131,7 @@
 
         detail::thread_data_ptr get_thread_info BOOST_PREVENT_MACRO_SUBSTITUTION () const;
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
         template<typename F>
         static inline detail::thread_data_ptr make_thread_info(BOOST_THREAD_RV_REF(F) f)
         {
@@ -174,7 +174,7 @@
             detach();
     #endif
         }
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
         template <
           class F
>
@@ -434,7 +434,7 @@
         return lhs.swap(rhs);
     }
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
     inline thread&& move(thread& t) BOOST_NOEXCEPT
     {
         return static_cast<thread&&>(t);

Modified: trunk/boost/thread/locks.hpp
==============================================================================
--- trunk/boost/thread/locks.hpp (original)
+++ trunk/boost/thread/locks.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -609,7 +609,7 @@
             is_locked=false;
         }
 
-#if defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS)
+#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS)
         typedef void (unique_lock::*bool_type)();
         operator bool_type() const BOOST_NOEXCEPT
         {
@@ -880,7 +880,7 @@
             is_locked=false;
         }
 
-#if defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS)
+#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS)
         typedef void (shared_lock<Mutex>::*bool_type)();
         operator bool_type() const BOOST_NOEXCEPT
         {
@@ -1140,7 +1140,7 @@
           return is_locked;
         }
 #endif
-#if defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS)
+#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS)
         typedef void (upgrade_lock::*bool_type)();
         operator bool_type() const BOOST_NOEXCEPT
         {
@@ -1224,7 +1224,7 @@
             exclusive.swap(other.exclusive);
         }
 
-#if defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS)
+#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS)
         typedef void (upgrade_to_unique_lock::*bool_type)(upgrade_to_unique_lock&);
         operator bool_type() const BOOST_NOEXCEPT
         {
@@ -1275,7 +1275,7 @@
             try_lock_wrapper(Mutex& m_,try_to_lock_t):
                 base(m_,try_to_lock)
             {}
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
             try_lock_wrapper(BOOST_THREAD_RV_REF(try_lock_wrapper) other):
                 base(::boost::move(other))
             {}
@@ -1325,7 +1325,7 @@
                 return base::release();
             }
 
-#if defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS)
+#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS)
             typedef typename base::bool_type bool_type;
             operator bool_type() const
             {

Modified: trunk/boost/thread/pthread/thread_heap_alloc.hpp
==============================================================================
--- trunk/boost/thread/pthread/thread_heap_alloc.hpp (original)
+++ trunk/boost/thread/pthread/thread_heap_alloc.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -17,7 +17,7 @@
             return new T();
         }
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
         template<typename T,typename A1>
         inline T* heap_new(A1&& a1)
         {
@@ -72,7 +72,7 @@
         {
             return heap_new_impl<T,A1&>(a1);
         }
-
+
         template<typename T,typename A1,typename A2>
         inline T* heap_new(A1 const& a1,A2 const& a2)
         {
@@ -218,8 +218,8 @@
         {
             return heap_new_impl<T,A1&,A2&,A3&,A4&>(a1,a2,a3,a4);
         }
-
-#endif
+
+#endif
         template<typename T>
         inline void heap_delete(T* data)
         {

Modified: trunk/boost/thread/win32/thread_heap_alloc.hpp
==============================================================================
--- trunk/boost/thread/win32/thread_heap_alloc.hpp (original)
+++ trunk/boost/thread/win32/thread_heap_alloc.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -91,7 +91,7 @@
 #endif
         }
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
         template<typename T,typename A1>
         inline T* heap_new(A1&& a1)
         {

Modified: trunk/libs/thread/src/tss_null.cpp
==============================================================================
--- trunk/libs/thread/src/tss_null.cpp (original)
+++ trunk/libs/thread/src/tss_null.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -8,7 +8,7 @@
 
 #if defined(BOOST_HAS_WINTHREADS) && (defined(BOOST_THREAD_BUILD_LIB) || defined(BOOST_THREAD_TEST) || defined(UNDER_CE)) && (!defined(_MSC_VER) || defined(UNDER_CE))
 
-namespace boost
+namespace boost
 {
     /*
     This file is a "null" implementation of tss cleanup; it's
@@ -32,7 +32,7 @@
         longer needed and can be removed.
         */
     }
-
+
 }
 
 #endif //defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB) && !defined(_MSC_VER)

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -14,14 +14,4 @@
     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;
-
-}
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -13,14 +13,4 @@
     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;
-
-}
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"

Added: trunk/libs/thread/test/remove_error_code_unused_warning.hpp
==============================================================================
--- (empty file)
+++ trunk/libs/thread/test/remove_error_code_unused_warning.hpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -0,0 +1,17 @@
+// Copyright (C) 2008 Anthony Williams
+//
+// 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>
+
+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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -26,13 +26,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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/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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -26,13 +26,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -26,13 +26,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (void)boost::system::posix_category;
- (void)boost::system::errno_ecat;
- (void)boost::system::native_ecat;
-}

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -36,13 +36,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -34,13 +34,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -45,13 +45,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -45,13 +45,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -31,13 +31,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -30,13 +30,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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_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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -33,13 +33,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -32,13 +32,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -29,13 +29,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -28,13 +28,5 @@
   }
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -37,13 +37,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -36,13 +36,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -33,13 +33,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -32,13 +32,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -37,13 +37,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -36,13 +36,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -35,13 +35,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -37,13 +37,5 @@
 
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -36,13 +36,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,4 @@
   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;
-}
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,5 @@
   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]
+#include "impl/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,15 +27,6 @@
   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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,14 +27,5 @@
   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]
+#include "impl/thread/test/remove_error_code_unused_warning.hpp"
 
- (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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -27,13 +27,4 @@
   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;
-}
+#include "impl/thread/test/remove_error_code_unused_warning.hpp"

Modified: trunk/libs/thread/test/test_2309.cpp
==============================================================================
--- trunk/libs/thread/test/test_2309.cpp (original)
+++ trunk/libs/thread/test/test_2309.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -9,54 +9,54 @@
 
 #include <boost/thread.hpp>
 
- using namespace std;
+ using namespace std;
 
- boost::mutex mutex_;
+ boost::mutex mutex_;
 
- void perform()
- {
- try
- {
- boost::this_thread::sleep(boost::posix_time::seconds(100));
- }
- catch (boost::thread_interrupted& interrupt)
- {
- boost::mutex::scoped_lock lock(mutex_);
- cerr << "Thread " << boost::this_thread::get_id() << " got interrupted" << endl;
- throw(interrupt);
- }
- catch (std::exception& e)
- {
- boost::mutex::scoped_lock lock(mutex_);
- cerr << "Thread " << boost::this_thread::get_id() << " caught std::exception" << e.what() << endl;
- }
- catch (...)
- {
- boost::mutex::scoped_lock lock(mutex_);
- cerr << "Thread " << boost::this_thread::get_id() << " caught something else" << endl;
- }
- }
+ void perform()
+ {
+ try
+ {
+ boost::this_thread::sleep(boost::posix_time::seconds(100));
+ }
+ catch (boost::thread_interrupted& interrupt)
+ {
+ boost::mutex::scoped_lock lock(mutex_);
+ cerr << "Thread " << boost::this_thread::get_id() << " got interrupted" << endl;
+ throw(interrupt);
+ }
+ catch (std::exception& e)
+ {
+ boost::mutex::scoped_lock lock(mutex_);
+ cerr << "Thread " << boost::this_thread::get_id() << " caught std::exception" << e.what() << endl;
+ }
+ catch (...)
+ {
+ boost::mutex::scoped_lock lock(mutex_);
+ cerr << "Thread " << boost::this_thread::get_id() << " caught something else" << endl;
+ }
+ }
 
- void test()
- {
+ void test()
+ {
     try
     {
     boost::thread_group threads;
 
- for (int i = 0; i < 2; ++i)
- {
- threads.create_thread(perform);
- }
-
- //boost::this_thread::sleep(1);
- threads.interrupt_all();
- threads.join_all();
+ for (int i = 0; i < 2; ++i)
+ {
+ threads.create_thread(perform);
+ }
+
+ //boost::this_thread::sleep(1);
+ threads.interrupt_all();
+ threads.join_all();
     }
     catch (...)
     {
       BOOST_CHECK(false && "exception raised");
     }
- }
+ }
 
 boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[])
 {

Modified: trunk/libs/thread/test/test_2501.cpp
==============================================================================
--- trunk/libs/thread/test/test_2501.cpp (original)
+++ trunk/libs/thread/test/test_2501.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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/shared_mutex.hpp>
 #include <boost/thread/locks.hpp>
 

Modified: trunk/libs/thread/test/test_4521.cpp
==============================================================================
--- trunk/libs/thread/test/test_4521.cpp (original)
+++ trunk/libs/thread/test/test_4521.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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.hpp>
 
 int calculate_the_answer_to_life_the_universe_and_everything()

Modified: trunk/libs/thread/test/test_4648.cpp
==============================================================================
--- trunk/libs/thread/test/test_4648.cpp (original)
+++ trunk/libs/thread/test/test_4648.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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 <iostream>
 #include <boost/thread.hpp>
 #include <boost/current_function.hpp>

Modified: trunk/libs/thread/test/test_4882.cpp
==============================================================================
--- trunk/libs/thread/test/test_4882.cpp (original)
+++ trunk/libs/thread/test/test_4882.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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/thread/shared_mutex.hpp>
 

Modified: trunk/libs/thread/test/test_5351.cpp
==============================================================================
--- trunk/libs/thread/test/test_5351.cpp (original)
+++ trunk/libs/thread/test/test_5351.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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 <iostream>
 #include <boost/thread.hpp>
 #include <boost/date_time/posix_time/posix_time_types.hpp>

Modified: trunk/libs/thread/test/test_5502.cpp
==============================================================================
--- trunk/libs/thread/test/test_5502.cpp (original)
+++ trunk/libs/thread/test/test_5502.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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)
+
 // bm.cpp
 
 // g++ test.cpp -lboost_thread-mt && ./a.out

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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 <iostream>
 #include <boost/thread.hpp>
 

Modified: trunk/libs/thread/test/test_5542_2.cpp
==============================================================================
--- trunk/libs/thread/test/test_5542_2.cpp (original)
+++ trunk/libs/thread/test/test_5542_2.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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.hpp>
 
 void run_thread() {

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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 <iostream>
 #include <boost/thread.hpp>
 #include <boost/date_time.hpp>

Modified: trunk/libs/thread/test/test_6130.cpp
==============================================================================
--- trunk/libs/thread/test/test_6130.cpp (original)
+++ trunk/libs/thread/test/test_6130.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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.hpp>
 #include <assert.h>
 #include <iostream>

Modified: trunk/libs/thread/test/test_6170.cpp
==============================================================================
--- trunk/libs/thread/test/test_6170.cpp (original)
+++ trunk/libs/thread/test/test_6170.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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/shared_mutex.hpp>
 #include <boost/thread/locks.hpp>
 

Modified: trunk/libs/thread/test/test_ml.cpp
==============================================================================
--- trunk/libs/thread/test/test_ml.cpp (original)
+++ trunk/libs/thread/test/test_ml.cpp 2012-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -1,3 +1,8 @@
+// Copyright (C) 2010 Vicente Botet
+//
+// 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/config.hpp>
 #ifndef BOOST_NO_RVALUE_REFERENCES
 

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -67,14 +67,4 @@
   }
 }
 
-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;
-
-}
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"

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-08-12 14:33:11 EDT (Sun, 12 Aug 2012)
@@ -82,14 +82,5 @@
   }
 }
 
-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]
+#include "libs/thread/test/remove_error_code_unused_warning.hpp"
 
- (void)boost::system::posix_category;
- (void)boost::system::errno_ecat;
- (void)boost::system::native_ecat;
-
-}


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