From 98986f39e97727a80f733f7809ceb80a13697269 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Sat, 15 Aug 2015 21:21:29 +0200 Subject: [PATCH] Removed not needed call to pthread_attr_getstacksize() for SDL_CreateThread(). --- src/thread/pthread/SDL_systhread.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/thread/pthread/SDL_systhread.c b/src/thread/pthread/SDL_systhread.c index c77e31b294a8e..14eee8deb3c16 100644 --- a/src/thread/pthread/SDL_systhread.c +++ b/src/thread/pthread/SDL_systhread.c @@ -87,7 +87,6 @@ int SDL_SYS_CreateThread(SDL_Thread * thread, void *args) { pthread_attr_t type; - size_t ss; const char *hint = SDL_GetHint(SDL_HINT_THREAD_STACK_SIZE); /* do this here before any threads exist, so there's no race condition. */ @@ -116,8 +115,6 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args) pthread_attr_setstacksize(&type, stacksize); } } - - pthread_attr_getstacksize(&type, &ss); /* Create the thread and go! */ if (pthread_create(&thread->handle, &type, RunThread, args) != 0) {