Eliminate 'scope of variable can be reduced' cppcheck warnings (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 7 Mar 2017 15:41:13 +0000 (18:41 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 7 Mar 2017 15:50:58 +0000 (18:50 +0300)
commit1795d2cf08cc12ece866fae4bf3d06fffa764084
treed9bfe60b1c6e491ae8a524ad76a9e9fafc3b8f3a
parent2ef00694771f35035d0deb5dfb68e8d56daf79a7
Eliminate 'scope of variable can be reduced' cppcheck warnings (Win32)

* os_dep.c [MSWIN32] (GC_register_root_section): Move "protect" local
variable declaration to the inner scope where the variable is actually
used.
* win32_threads.c [!MSWINCE && !CYGWIN32] (GC_CreateThread): Move
"thread_h" local variable declaration to the inner scope.
os_dep.c
win32_threads.c