This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32292] New: pthread_exit should have attribute __noreturn__
- From: "scovich at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2007 20:47:23 -0000
- Subject: [Bug c/32292] New: pthread_exit should have attribute __noreturn__
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following generates a spurious warning about control reaching the end of a
non-void function:
#include <pthread.h>
void* foo(void*) {
pthread_exit(1);
}
--
Summary: pthread_exit should have attribute __noreturn__
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: scovich at gmail dot com
GCC target triplet: i686-pc-cygwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32292