From db0507e6703c9ce705ccf0b3a3274534a7ad537f Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 5 Apr 2026 11:30:45 +0300 Subject: [PATCH] LibC: Mark pthread_exit noreturn --- userspace/libraries/LibC/include/pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/libraries/LibC/include/pthread.h b/userspace/libraries/LibC/include/pthread.h index bef047cc..e39d737c 100644 --- a/userspace/libraries/LibC/include/pthread.h +++ b/userspace/libraries/LibC/include/pthread.h @@ -159,7 +159,7 @@ int pthread_condattr_setpshared(pthread_condattr_t* attr, int pshared); int pthread_create(pthread_t* __restrict thread, const pthread_attr_t* __restrict attr, void *(*start_routine)(void*), void* __restrict arg); int pthread_detach(pthread_t thread); int pthread_equal(pthread_t t1, pthread_t t2); -void pthread_exit(void* value_ptr); +void pthread_exit(void* value_ptr) __attribute__((__noreturn__)); int pthread_getconcurrency(void); int pthread_getcpuclockid(pthread_t thread_id, clockid_t* clock_id); int pthread_getschedparam(pthread_t thread, int* __restrict policy, struct sched_param* __restrict param);