]> git.ozlabs.org Git - ccan/blobdiff - ccan/tcon/test/compile_fail-container3w.c
tcon: fix overzealous gcc 12.2.0 warning.
[ccan] / ccan / tcon / test / compile_fail-container3w.c
index 958e5c8b3dca47c67c1f23aa25fe9fc29e759e90..a56e510f1e2bb86f326b917ad61bc17c839281b2 100644 (file)
@@ -21,7 +21,7 @@ int main(void)
 {
        TCON_WRAP(struct info_base,
                  TCON_CONTAINER(concan, struct outer, inner)) info;
-       struct outer ovar;
+       struct outer ovar = { 0, { 0 } };
 #ifdef FAIL
 #if !HAVE_TYPEOF
 #error We cannot detect type problems without HAVE_TYPEOF