From: Bruno Haible Date: Fri, 24 Dec 2021 18:31:27 +0000 (+0100) Subject: hamt tests: Fix compilation error with AIX xlc. X-Git-Tag: v1.0~2490 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=48f5e2e61bd2908ee282e6320470bd4e580cfddf;p=gnulib.git hamt tests: Fix compilation error with AIX xlc. * tests/test-hamt.c (test_iterator): Don't use compound initializer. --- diff --git a/ChangeLog b/ChangeLog index 32174c29e0..45bc226680 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2021-12-24 Bruno Haible + + hamt tests: Fix compilation error with AIX xlc. + * tests/test-hamt.c (test_iterator): Don't use compound initializer. + 2021-12-24 Bruno Haible strerrorname_np: Fix compilation error on IRIX. diff --git a/tests/test-hamt.c b/tests/test-hamt.c index 882bf0fc76..5b953741ca 100644 --- a/tests/test-hamt.c +++ b/tests/test-hamt.c @@ -348,7 +348,8 @@ test_iterator (void) { Hamt *hamt = test_hamt_create (); ASSERT (insert_values (&hamt, 10, val_array1, true) == 10); - Hamt_iterator iter [1] = {hamt_iterator (hamt)}; + Hamt_iterator iter[1]; + iter[0] = hamt_iterator (hamt); size_t cnt = 0; bool found [10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; Hamt_entry *p;