From 4c3a0f251f9b4769b8b8eb0718822835e0a72aba Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 20 Sep 2011 17:48:29 -0400 Subject: [PATCH] Don't call pthread_exit(), returning from RunThread() is equivalent. --- src/thread/pthread/SDL_systhread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c index 59474dce8..e795f000b 100644 --- a/src/thread/pthread/SDL_systhread.c +++ b/src/thread/pthread/SDL_systhread.c @@ -43,8 +43,7 @@ static void * RunThread(void *data) { SDL_RunThread(data); - pthread_exit((void *) 0); - return ((void *) 0); /* Prevent compiler warning */ + return NULL; } int