diff options
author | Elliott Hughes <enh@google.com> | 2014-05-30 14:49:00 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-05-30 15:56:25 -0700 |
commit | 6203e7b853a587fbd70cea2e58b63ae38a71a13e (patch) | |
tree | e13aad8c180100b87e7a24c2ae5292c81599d223 /libc/bionic/pthread_exit.cpp | |
parent | 3a3b27e04df395b789b92af3d0ed05d2a0f3bf04 (diff) | |
download | bionic-6203e7b853a587fbd70cea2e58b63ae38a71a13e.zip bionic-6203e7b853a587fbd70cea2e58b63ae38a71a13e.tar.gz bionic-6203e7b853a587fbd70cea2e58b63ae38a71a13e.tar.bz2 |
Add some missing __noreturn attributes.
This is more honest, and lets us remove a hack.
Change-Id: I309f064743ded5248573ccafc379f78d417db08d
Diffstat (limited to 'libc/bionic/pthread_exit.cpp')
-rw-r--r-- | libc/bionic/pthread_exit.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libc/bionic/pthread_exit.cpp b/libc/bionic/pthread_exit.cpp index de818cd..2470c9c 100644 --- a/libc/bionic/pthread_exit.cpp +++ b/libc/bionic/pthread_exit.cpp @@ -34,8 +34,8 @@ #include "pthread_internal.h" -extern "C" void _exit_with_stack_teardown(void*, size_t); -extern "C" void __exit(int); +extern "C" __noreturn void _exit_with_stack_teardown(void*, size_t); +extern "C" __noreturn void __exit(int); extern "C" int __set_tid_address(int*); /* CAVEAT: our implementation of pthread_cleanup_push/pop doesn't support C++ exceptions @@ -127,7 +127,4 @@ void pthread_exit(void* return_value) { _exit_with_stack_teardown(stack_base, stack_size); } - - // NOTREACHED, but we told the compiler this function is noreturn, and it doesn't believe us. - abort(); } |