|
Message-Id: <c05360e4272e210dff78274697c2df20daf4b7d5.1685522953.git.Jens.Gustedt@inria.fr> Date: Wed, 31 May 2023 11:22:55 +0200 From: Jens Gustedt <Jens.Gustedt@...ia.fr> To: musl@...ts.openwall.com Subject: [C23 divers headers 08/17] C23: change the noreturn function in threads.h --- include/threads.h | 2 +- src/thread/thrd_exit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/threads.h b/include/threads.h index 52ec3100..608ff2a3 100644 --- a/include/threads.h +++ b/include/threads.h @@ -41,7 +41,7 @@ enum { #define ONCE_FLAG_INIT 0 int thrd_create(thrd_t *, thrd_start_t, void *); -_Noreturn void thrd_exit(int); +__noreturn void thrd_exit(int); int thrd_detach(thrd_t); int thrd_join(thrd_t, int *); diff --git a/src/thread/thrd_exit.c b/src/thread/thrd_exit.c index 9b291ae3..fd094441 100644 --- a/src/thread/thrd_exit.c +++ b/src/thread/thrd_exit.c @@ -2,7 +2,7 @@ #include <pthread.h> #include <stdint.h> -_Noreturn void thrd_exit(int result) +__noreturn void thrd_exit(int result) { __pthread_exit((void*)(intptr_t)result); } -- 2.34.1
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.