(revert commit
c2e05dd)
* pthread_support.c [CAN_HANDLE_FORK && THREAD_LOCAL_ALLOC
&& USE_CUSTOM_SPECIFIC] (GC_remove_all_threads_but_me): Remove "res"
local variable.
* Eliminate 'possible loss of data' compiler warnings (MS VC)
* Eliminate 'printf format specifier mismatch' compiler warning (tools)
* Eliminate 'type defaults to int in declaration' warning (REDIRECT_MALLOC)
-* Eliminate 'unused variable' compiler warning in remove_all_threads_but_me
* Eliminate 'value stored is never read' warning of Clang static analyzer
* Eliminate duplicate log messages in GC_mark_from
* Ensure GC initialized when atfork_prepare is called by client
me -> kernel_id = gettid();
# endif
# if defined(THREAD_LOCAL_ALLOC) && !defined(USE_CUSTOM_SPECIFIC)
- {
- int res;
-
/* Some TLS implementations might be not fork-friendly, so */
/* we re-assign thread-local pointer to 'tlfs' for safety */
/* instead of the assertion check (again, it is OK to call */
/* GC_destroy_thread_local and GC_free_internal before). */
if (GC_setspecific(GC_thread_key, &me->tlfs) != 0)
ABORT("GC_setspecific failed (in child)");
- }
# endif
} else {
# ifdef THREAD_LOCAL_ALLOC