Reduce scope of local variables in GC_remove_all_threads_but_me
authorIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2018 21:45:14 +0000 (00:45 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 8 Nov 2018 21:46:08 +0000 (00:46 +0300)
commit49e0e6e6b47056a51a858a36b6607a474f72bad0
tree05bf70eeaed717fbdf9de260b859becd1a887121
parente3b2cf50da098bacaddcc4aab73e1ea454647cd7
Reduce scope of local variables in GC_remove_all_threads_but_me

This eliminates 'the scope of the variable can be reduced' cppcheck
warning in GC_remove_all_threads_but_me.

* pthread_support.c [CAN_HANDLE_FORK] (GC_remove_all_threads_but_me):
Move p, next, me local variables to an inner scope there they are used.
* win32_threads.c [CAN_HANDLE_FORK] (GC_remove_all_threads_but_me):
Move p, next local variables to an inner scope.
pthread_support.c
win32_threads.c