6 Jan
2011
6 Jan
'11
1:28 p.m.
"Hicham Mouline"
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?
Yes and no :-) In the release build the assert compiles to nothing, so res is no longer referenced, even though it is referenced in the source. Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976