]> git.ozlabs.org Git - ccan/commit
foreach: fixed maybe uninitialized warning in test (-O2)
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 25 Oct 2016 04:45:33 +0000 (15:15 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 25 Oct 2016 04:45:33 +0000 (15:15 +1030)
commit6e86fffc5e5780c209f52986be4f150b16b96d29
treeb957a9ac52a1abfd54f5074ef08bed3dee7fb875
parent1de204600b76e0bfba1f0cebdd2a6a62a04e9e70
foreach: fixed maybe uninitialized warning in test (-O2)

/home/rusty/devel/cvs/ccan/ccan/tap/tap.h:57:59: warning: ‘max_iters’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    _gen_result(1, __func__, __FILE__, __LINE__, "%s", #e) : \
                                                           ^
/home/rusty/devel/cvs/ccan/ccan/foreach/test/run-nested.c:47:17: note: ‘max_iters’ was declared here
  int i, j, sum, max_iters;

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/foreach/test/run-nested.c