Ticket #6628 (closed Bugs: fixed)

Opened 5 years ago

Last modified 5 years ago

compiler warning in process_cpu_clocks.hpp

Reported by: anonymous Owned by: viboes
Milestone: Boost 1.50.0 Component: chrono
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:


I am getting following compiler warnings:

./boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp:218: warning: control reaches end of non-void function

I am working with boost 1.49.0. I am running RHEL 5 and using gcc 4.1.2.

I have checked previous versions of boost and it appears that this warning first occurred with boost 1.48.0


Change History

comment:1 Changed 5 years ago by pth@…

As building for openSUSE fails for such warnings, I'd propose something like this

--- 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

else {

BOOST_ASSERT(0 && "Boost::Chrono - Internal Error");

+ return time_point();




comment:2 Changed 5 years ago by viboes

  • Status changed from new to assigned
  • Milestone changed from To Be Determined to Boost 1.50.0

Thanks for the report. Committed in trunk revision [77445].

Last edited 5 years ago by viboes (previous) (diff)

comment:3 Changed 5 years ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [77694]) Chrono Fix #6361,#6628,#6666


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.