From 159a2e1a65da49f65f7acd8147bebc247e904d81 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 21 Apr 2001 18:41:05 +0000 Subject: Update. * manager.c (__pthread_manager): Add noreturn attribute. (pthread_start_thread): Likewise, remove return statement. (pthread_start_thread_event): Likewise. Add noreturn attribute for pthread_handle_exit. * weaks.c: Add noreturn attribute for pthread_exit. --- linuxthreads/weaks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'linuxthreads/weaks.c') diff --git a/linuxthreads/weaks.c b/linuxthreads/weaks.c index 948b893095..036e004612 100644 --- a/linuxthreads/weaks.c +++ b/linuxthreads/weaks.c @@ -1,5 +1,5 @@ /* The weak pthread functions for Linux. - Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,7 +26,8 @@ extern int __pthread_return_0 (void); extern int __pthread_return_1 (void); extern void __pthread_return_void (void); -extern void weak_function pthread_exit (void *__retval); +extern void weak_function pthread_exit (void *__retval) + __attribute__ ((noreturn)); /* Those are pthread functions which return 0 if successful. */ weak_alias (__pthread_return_0, BP_SYM (__libc_pthread_attr_init_2_1)) -- cgit 1.4.1