Modify

Ticket #7890 (closed Bugs: fixed)

Opened 15 months ago

Last modified 15 months ago

thread::do_try_join_until() is missing a return type

Reported by: p.brockamp@… Owned by: viboes
Milestone: Boost 1.53.0 Component: thread
Version: Boost 1.52.0 Severity: Optimization
Keywords: Cc:

Description

Hi!

I get the following warning in V1.52.0 (GCC 4.3 with some additional warnings enabled):

libs/thread/src/pthread/thread.cpp:379: warning: control reaches end of non-void function

As is clear from the source-code this line will not be executed, so this is a false warning. Anyway it is disturbing as it normally signals a more or less severe programming error. I know other compilers will complain about unreachable code when inserting a dummy return, but I think there is a macro based solution available for this, isn't it?

Regards

Peter

Attachments

Change History

comment:1 Changed 15 months ago by viboes

  • Owner changed from anthonyw to viboes
  • Status changed from new to assigned
  • Milestone To Be Determined deleted

The code has been refactored in 1.53 and fixes already this warning.

 https://svn.boost.org/svn/boost/trunk/libs/thread/src/pthread/thread.cpp

comment:2 Changed 15 months ago by viboes

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone set to Boost 1.53.0
View

Add a comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.