]> git.ozlabs.org Git - ccan/blobdiff - ccan/tcon/test/compile_fail-container1.c
tcon: fix overzealous gcc 12.2.0 warning.
[ccan] / ccan / tcon / test / compile_fail-container1.c
index a67e2090766d3217d0665f815314bb6ccfcdb143..ed1d3e206acd97eee8cf46b69e8018a5a87096e4 100644 (file)
@@ -22,10 +22,10 @@ struct info_tcon {
        TCON(TCON_CONTAINER(concan, struct outer, inner));
 };
 
-int main(int argc, char *argv[])
+int main(void)
 {
        struct info_tcon info;
-       struct outer ovar;
+       struct outer ovar = { 0, { 0 } };
 #ifdef FAIL
 #if !HAVE_TYPEOF
 #error We cannot detect type problems without HAVE_TYPEOF