X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcontainer_of%2Ftest%2Fcompile_fail-types.c;h=fbb97a9ee4f9db1df8f39b063086e18df3eb3994;hb=a240178097376329b4567a6728952daa89362771;hp=a50b11c2b36b69e3dadd8766916a2eabb96f825a;hpb=39357f4e89f4ac02eb11861812cbfc67b4f1d4ef;p=ccan diff --git a/ccan/container_of/test/compile_fail-types.c b/ccan/container_of/test/compile_fail-types.c index a50b11c2..fbb97a9e 100644 --- a/ccan/container_of/test/compile_fail-types.c +++ b/ccan/container_of/test/compile_fail-types.c @@ -6,7 +6,7 @@ struct foo { char b; }; -int main(int argc, char *argv[]) +int main(void) { struct foo foo = { .a = 1, .b = 2 }, *foop; int *intp = &foo.a; @@ -17,5 +17,6 @@ int main(int argc, char *argv[]) #else foop = NULL; #endif + (void) foop; /* Suppress unused-but-set-variable warning. */ return intp == NULL; }