git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Mark win32's pthread_exit() as NORETURN
@ 2016-03-01 13:53 Johannes Schindelin
  2016-03-01 13:57 ` Jeff King
  2016-03-01 14:13 ` [PATCH v2] " Johannes Schindelin
  0 siblings, 2 replies; 12+ messages in thread
From: Johannes Schindelin @ 2016-03-01 13:53 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Jeff King, Torsten Bögershausen

The pthread_exit() function is not expected to return. Ever.

Pointed out by Jeff King.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 compat/win32/pthread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h
index 20b35a2..148db60 100644
--- a/compat/win32/pthread.h
+++ b/compat/win32/pthread.h
@@ -78,7 +78,7 @@ extern int win32_pthread_join(pthread_t *thread, void **value_ptr);
 #define pthread_equal(t1, t2) ((t1).tid == (t2).tid)
 extern pthread_t pthread_self(void);
 
-static inline int pthread_exit(void *ret)
+static inline int NORETURN pthread_exit(void *ret)
 {
 	ExitThread((DWORD)(intptr_t)ret);
 }
-- 
2.7.2.windows.1.5.g64acc33

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-03-02 20:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 13:53 [PATCH] Mark win32's pthread_exit() as NORETURN Johannes Schindelin
2016-03-01 13:57 ` Jeff King
2016-03-01 14:11   ` Johannes Schindelin
2016-03-01 14:13 ` [PATCH v2] " Johannes Schindelin
2016-03-01 14:38   ` stefan.naewe
2016-03-01 17:57     ` Junio C Hamano
2016-03-02 19:11     ` Johannes Schindelin
2016-03-01 19:34   ` Johannes Sixt
2016-03-01 19:44     ` Junio C Hamano
2016-03-02 19:10       ` Johannes Schindelin
2016-03-02 19:11   ` [PATCH v3] " Johannes Schindelin
2016-03-02 20:33     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).