Boost C++ Libraries: Ticket #6628: compiler warning in process_cpu_clocks.hpp https://svn.boost.org/trac10/ticket/6628 <p> I am getting following compiler warnings: </p> <p> ./boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp:218: warning: control reaches end of non-void function </p> <p> I am working with boost 1.49.0. I am running RHEL 5 and using gcc 4.1.2. </p> <p> I have checked previous versions of boost and it appears that this warning first occurred with boost 1.48.0 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6628 Trac 1.4.3 pth@… Tue, 13 Mar 2012 18:51:53 GMT <link>https://svn.boost.org/trac10/ticket/6628#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6628#comment:1</guid> <description> <p> As building for openSUSE fails for such warnings, I'd propose something like this </p> <p> --- boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp.orig 2011-11-26 01:49:13.000000000 +0100 +++ boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp 2012-03-13 19:34:38.197168044 +0100 @@ -213,6 +213,7 @@ process_system_cpu_clock::time_point pro </p> <blockquote> <p> else { </p> <blockquote> <p> BOOST_ASSERT(0 &amp;&amp; "Boost::Chrono - Internal Error"); </p> </blockquote> </blockquote> <p> + return time_point(); </p> <blockquote> <p> } </p> </blockquote> <blockquote> <p> } </p> </blockquote> <blockquote> <p> } </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 21 Mar 2012 00:49:52 GMT</pubDate> <title>status, milestone changed https://svn.boost.org/trac10/ticket/6628#comment:2 https://svn.boost.org/trac10/ticket/6628#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.50.0</span> </li> </ul> <p> Thanks for the report. Committed in trunk revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/77445" title="Thread: Apply patch for #6628">[77445]</a>. </p> Ticket viboes Sun, 01 Apr 2012 19:28:19 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6628#comment:3 https://svn.boost.org/trac10/ticket/6628#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77694" title="Chrono Fix #6361,#6628,#6666">[77694]</a>) Chrono Fix <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6361" title="#6361: Bugs: integer overflow in boost::chrono::process_real_cpu_clock::now() under ... (closed: fixed)">#6361</a>,<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6628" title="#6628: Bugs: compiler warning in process_cpu_clocks.hpp (closed: fixed)">#6628</a>,<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6666" title="#6666: Bugs: thread_clock.hpp needs pthread.h (closed: fixed)">#6666</a> </p> Ticket