Eliminate 'scope of variable can be reduced' cppcheck warning in AO_stack
authorIvan Maidanski <ivmai@mail.ru>
Tue, 11 Oct 2016 07:01:35 +0000 (10:01 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 11 Oct 2016 07:01:35 +0000 (10:01 +0300)
commit2430131b2515f4e24f81368a573a3b8966849b53
tree4a5e3fcd5f2459d18be2c4f0cf65a38dc5b2b77b
parent9b7cecba55f5864577a803f4558bd9b9f304ac33
Eliminate 'scope of variable can be reduced' cppcheck warning in AO_stack

* src/atomic_ops_stack.c [AO_HAVE_compare_and_swap_double]
(AO_stack_push_release): Move local variable declaration to the inner
scope where the variable is actually used.
src/atomic_ops_stack.c