]> granicus.if.org Git - gc/commit
Fix 'label cannot be reached' static analyzer warning in disclaim_test
authorIvan Maidanski <ivmai@mail.ru>
Tue, 27 Sep 2016 17:23:19 +0000 (20:23 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 31 Oct 2016 20:42:43 +0000 (23:42 +0300)
commit11c0290cdc5e182b2f8edc393bdfbe5df3c83f50
tree25fcdaa3656bdf4bc99840343dc679c16d1014ce
parent5fa0c9c472062c421d4588164ad5f9c71f654ae3
Fix 'label cannot be reached' static analyzer warning in disclaim_test

* disclaim_test.c (GROW_LIMIT): Define to MUTATE_CNT/10 (instead of
10000000), so that it is always less than MUTATE_CNT (thus
i > GROW_LIMIT is not always false, thus all switch cases are
reachable).
tests/disclaim_test.c