]> git.ozlabs.org Git - ccan/blobdiff - ccan/container_of/test/compile_fail-types.c
coroutine: Remove on-stack buffers from testcases
[ccan] / ccan / container_of / test / compile_fail-types.c
index a50b11c2b36b69e3dadd8766916a2eabb96f825a..fbb97a9ee4f9db1df8f39b063086e18df3eb3994 100644 (file)
@@ -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;
 }