Fix 'ISO C90 forbids mixed declarations and code' compiler warning
authorIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 08:42:26 +0000 (11:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 21 Oct 2016 08:42:26 +0000 (11:42 +0300)
commit1a8c7c0e8952ce552be0956b45bcb93cc3dd3637
treeb9980d2571e445b7a50ec12472a7730d4ae76ce1
parent4c5af8713cdf889fba25c86bc9e1dc2372f2265d
Fix 'ISO C90 forbids mixed declarations and code' compiler warning

* pthread_support.c [GC_PTHREADS && !GC_WIN32_THREADS]
(GC_thread_exit_proc): Move GC_log_printf() call down to be after local
variables declarations.
* thread_local_alloc.c [THREAD_LOCAL_ALLOC && USE_PTHREAD_SPECIFIC
&& !USE_WIN32_SPECIFIC]: Add {} to have "k" local variable declaration
before any statement in a block.
pthread_support.c
thread_local_alloc.c