|
Boost Users : |
Subject: [Boost-users] 1.45: thread/condition_variable.hpp: unused variable 'res' warning, gcc 4.2
From: Hicham Mouline (hicham_at_[hidden])
Date: 2011-01-06 08:10:08
hello,
in Release build in Xcode, gcc 4.2.1,
inline void condition_variable::wait(unique_lock<mutex>& m)
{
...
int const res = pthread_cond_wait(&cond, &internal_mutex);
BOOST_ASSERT(!res);
...
}
Unused variable 'res'
is gcc mistaken?
regards,
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