|
Boost Users : |
Subject: [Boost-users] thread warning ununsed variable
From: Kraus Philipp (philipp.kraus_at_[hidden])
Date: 2010-11-25 08:02:48
Hi,
On Boost 1.45 I get a warning message in the condition_variable.hpp
inline void condition_variable::wait(unique_lock<mutex>& m)
{
thread_cv_detail::lock_on_exit<unique_lock<mutex> > guard;
detail::interruption_checker
check_for_interruption(&internal_mutex,&cond);
guard.activate(m);
int const res=pthread_cond_wait(&cond,&internal_mutex);
BOOST_ASSERT(!res);
this_thread::interruption_point();
}
the res variable isn't used (I compile the code with -O2 option)
Have a nice day
Phil
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net