X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftcon%2Ftest%2Fcompile_fail-container3.c;h=dfdfdba9a3412ef692311762b9cdfdd54d01c4e5;hb=HEAD;hp=97473c8caeb89e2e7455aadabac0482b56eea4d3;hpb=0ddea4131eca28437638cdaf9394324fafab33da;p=ccan diff --git a/ccan/tcon/test/compile_fail-container3.c b/ccan/tcon/test/compile_fail-container3.c index 97473c8c..dfdfdba9 100644 --- a/ccan/tcon/test/compile_fail-container3.c +++ b/ccan/tcon/test/compile_fail-container3.c @@ -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