Index: boost/thread/pthread/condition_variable_fwd.hpp =================================================================== --- boost/thread/pthread/condition_variable_fwd.hpp (revision 43) +++ boost/thread/pthread/condition_variable_fwd.hpp (working copy) @@ -82,13 +82,13 @@ boost::throw_exception(thread_resource_error(res, "boost::condition_variable::condition_variable() constructor failed in pthread_mutex_init")); } #endif - res = detail::monotonic_pthread_cond_init(cond); - if (res) + int res2 = detail::monotonic_pthread_cond_init(cond); + if (res2) { #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS BOOST_VERIFY(!pthread_mutex_destroy(&internal_mutex)); #endif - boost::throw_exception(thread_resource_error(res, "boost::condition_variable::condition_variable() constructor failed in detail::monotonic_pthread_cond_init")); + boost::throw_exception(thread_resource_error(res2, "boost::condition_variable::condition_variable() constructor failed in detail::monotonic_pthread_cond_init")); } } ~condition_variable()