From a5095f658307b9a28644862f860fb4ecfe4a69b3 Mon Sep 17 00:00:00 2001 From: ktietz Date: Fri, 21 Nov 2008 12:07:43 +0000 Subject: 2008-11-21 Kai Tietz * Object.m (errno): Replaced by errno.h include. (compare): Cast self to id to prevent warning on comparison. * objc/objc.h (BOOL): Prevent redeclaration of BOOL, if it is already there. * sendmsg.c (__objc_print_dtable_stats): Remove type warnings. * thr-win32.c (__objc_thread_detach): Remove type warning. (__objc_thread_id): Likewise. * thr.c (__objc_thread_detach_functiont): Add __builtin_trap () for noreturn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142087 138bc75d-0d04-0410-961f-82ee72b054a4 --- libobjc/thr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libobjc/thr.c') diff --git a/libobjc/thr.c b/libobjc/thr.c index 17f6f7e2920..c70c5bf5a01 100644 --- a/libobjc/thr.c +++ b/libobjc/thr.c @@ -114,6 +114,9 @@ __objc_thread_detach_function (struct __objc_thread_start_state *istate) /* Exit the thread */ objc_thread_exit (); + + /* Make sure compiler detects no return. */ + __builtin_trap (); } /* -- cgit v1.2.1