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 , 11 years ago
comment:2 by , 11 years ago
Milestone: | To Be Determined → Boost 1.50.0 |
---|---|
Status: | new → assigned |
Thanks for the report. Committed in trunk revision [77445].
Note:
See TracTickets
for help on using tickets.
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
+ return time_point();