Skip to content

Commit

Permalink
posix: pthread: ensure pthread_exit() has noreturn attribute
Browse files Browse the repository at this point in the history
The function pthread_exit() does not return. It should be declared
with the noreturn attribute.

(cherry picked from commit 5c455aa)

Original-Signed-off-by: Christopher Friedt <cfriedt@meta.com>
GitOrigin-RevId: 5c455aa
Change-Id: Ide73998e596a9696e4e80e90135a259f0b924de6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5287005
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
cfriedt authored and Chromeos LUCI committed Feb 12, 2024
1 parent 4b9bd38 commit 4c846d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/posix/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ int pthread_attr_setstack(pthread_attr_t *attr, void *stackaddr,
#ifdef CONFIG_PTHREAD_IPC
int pthread_once(pthread_once_t *once, void (*initFunc)(void));
#endif
void pthread_exit(void *retval);
FUNC_NORETURN void pthread_exit(void *retval);
int pthread_join(pthread_t thread, void **status);
int pthread_cancel(pthread_t pthread);
int pthread_detach(pthread_t thread);
Expand Down

0 comments on commit 4c846d1

Please sign in to comment.