@@ -141,20 +141,21 @@ #else # error of_thread_detach not implemented! #endif } -static OF_INLINE void OF_NO_RETURN +static OF_INLINE void noreturn of_thread_exit(void) { #if defined(OF_HAVE_PTHREADS) pthread_exit(NULL); #elif defined(_WIN32) ExitThread(0); #else # error of_thread_exit not implemented! #endif + OF_UNREACHABLE } static OF_INLINE void of_once(of_once_t *control, void (*func)(void)) {