Boost C++ Libraries: Ticket #8611: pthread functions are called without checking return values for error https://svn.boost.org/trac10/ticket/8611 <p> This is similar to <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/2681"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/2681</a> </p> <p> The errors are detected by coverity static analysis. </p> <pre class="wiki">58 void lock() 59 { CID 11713: Unchecked return value 60 pthread_mutex_lock(&amp;m_); 61 } 68 void unlock() 69 { CID 11714 (#1 of 1): Unchecked return value (CHECKED_RETURN) 1. check_return: Calling function "pthread_mutex_unlock(pthread_mutex_t *)" without checking return value (as is done elsewhere 6 out of 7 times). 2. unchecked_value: No check of the return value of "pthread_mutex_unlock(&amp;this-&gt;m_)". 70 pthread_mutex_unlock(&amp;m_); 71 } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8611 Trac 1.4.3 viboes Thu, 23 May 2013 17:07:34 GMT owner, status changed https://svn.boost.org/trac10/ticket/8611#comment:1 https://svn.boost.org/trac10/ticket/8611#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Frank Mori Hess</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Do you want the same outcome than <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2681" title="#2681: Bugs: lwm_pthread fails to catch initialization error (closed: fixed)">#2681</a>? </p> Ticket Richard <legalize@…> Fri, 24 May 2013 00:48:56 GMT <link>https://svn.boost.org/trac10/ticket/8611#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8611#comment:2</guid> <description> <p> I think using BOOST_VERIFY as was done in the other changeset is entirely reasonable. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 09 Jun 2013 20:46:27 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/8611#comment:3 https://svn.boost.org/trac10/ticket/8611#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">viboes</span> to <span class="trac-author">Frank Mori Hess</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> </ul> Ticket