Opened 6 years ago

Closed 6 years ago

#6628 closed Bugs (fixed)

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

Attachments (0)

Change History (3)

comment:1 Changed 6 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 6 years ago by viboes

Milestone: To Be DeterminedBoost 1.50.0
Status: newassigned

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

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

comment:3 Changed 6 years ago by viboes

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.