]> git.ozlabs.org Git - ccan/blobdiff - ccan/foreach/test/run-nested.c
foreach: fixed maybe uninitialized warning in test (-O2)
[ccan] / ccan / foreach / test / run-nested.c
index aa20437ec443e643f275502e31d70d544ffeec20..0bb21c980057d29af5ac34680a15ca1cbf39f83d 100644 (file)
@@ -44,7 +44,7 @@ static int count_iters(void)
 
 int main(void)
 {
 
 int main(void)
 {
-       int i, j, sum, max_iters;
+       int i, j, sum, max_iters = 0 /* keep gcc happy */;
        const char *istr, *jstr;
 
        plan_tests(13);
        const char *istr, *jstr;
 
        plan_tests(13);