Eliminate 'scope of variable can be reduced' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Tue, 23 Aug 2016 21:50:49 +0000 (00:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 23 Aug 2016 21:50:49 +0000 (00:50 +0300)
commitc489a27399281d4202ef9fa148266da7be8636b9
treeccb34627c963245f141363746e7539d6f5e2c7fd
parent1033478d414f4ea2d37baeec8af22889652f9973
Eliminate 'scope of variable can be reduced' cppcheck warnings

* src/atomic_ops_malloc.c (msb): Declare "v" variable exactly in the
scope where the variable is used in.
* tests/run_parallel.h [USE_PTHREADS || USE_WINTHREADS] (run_parallel):
Declare "code" variable exactly in the scope where the variable is
used in.
src/atomic_ops_malloc.c
tests/run_parallel.h