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