Opened 11 years ago

Closed 11 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:

Description

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 (3)

comment:1 by pth@…, 11 years ago

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 by viboes, 11 years ago

Milestone: To Be DeterminedBoost 1.50.0
Status: newassigned

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

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

comment:3 by viboes, 11 years ago

Resolution: fixed
Status: assignedclosed

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

Note: See TracTickets for help on using tickets.