libroot: Fix GCC2 build.

This commit is contained in:
Augustin Cavalier
2018-12-25 18:34:18 -05:00
parent e4103b1b92
commit 3b5e6232de
+2 -1
View File
@@ -37,10 +37,11 @@ thread_entry(void* _entry, void* _thread)
{
thread_func entry = (thread_func)_entry;
pthread_thread* thread = (pthread_thread*)_thread;
status_t returnCode;
__heap_thread_init();
status_t returnCode = entry(thread->entry_argument);
returnCode = entry(thread->entry_argument);
_thread_do_exit_work();
__heap_thread_exit();