]> granicus.if.org Git - libatomic_ops/commit
Eliminate 'variable set but not used' Cppcheck warnings in test_stack
authorIvan Maidanski <ivmai@mail.ru>
Fri, 13 Jun 2014 12:35:55 +0000 (16:35 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 29 Jan 2015 22:56:15 +0000 (01:56 +0300)
commit658d0711f76ed015aafa2f50604d9ff74e79d28c
treecd61d19f1fb1c5f20f64d220d4e20f831384fbe9
parent952543ab656f8cf787a39018b8c8b41c475d8902
Eliminate 'variable set but not used' Cppcheck warnings in test_stack

* tests/test_stack.c (run_one_test): Define "j" local variable only
if VERBOSE.
* tests/test_stack.c (main): Do not define "sum" local variable (and
don not compute the sum) if NO_TIMES.
tests/test_stack.c