Boost C++ Libraries: Ticket #5344: condition_variable.hpp warning https://svn.boost.org/trac10/ticket/5344 <p> Warning from g++ 4.1.2 (RHEL 5): </p> <p> boost/boost/thread/pthread/condition_variable.hpp:54: warning: unused variable 'res' </p> <p> Probably due to an oversight: </p> <ul><li>int const res=pthread_cond_wait(&amp;cond,&amp;internal_mutex); </li><li>BOOST_ASSERT(!res); </li></ul><blockquote> <p> + (void)res; </p> </blockquote> <p> actually patch for exactly same problem was submitted with issue <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4818" title="#4818: Patches: Fix for warning on unused variable in ... (closed: fixed)">#4818</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5344 Trac 1.4.3 Marshall Clow Sun, 20 Mar 2011 18:44:31 GMT <link>https://svn.boost.org/trac10/ticket/5344#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5344#comment:1</guid> <description> <p> I see that the file trunk/boost/thread/pthread/condition_variable.hpp has been significantly reworked, but the changes have not yet been merged to the release branch. </p> <p> Anthony - is the merge planned for the 1.47 release? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 02 Dec 2011 06:18:53 GMT</pubDate> <title>status changed; cc, resolution set https://svn.boost.org/trac10/ticket/5344#comment:2 https://svn.boost.org/trac10/ticket/5344#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4818" title="#4818: Patches: Fix for warning on unused variable in ... (closed: fixed)">#4818</a> </p> Ticket