]> git.ozlabs.org Git - ccan/blobdiff - ccan/container_of/test/compile_fail-types.c
asort, cdump, htable, list, noerr, strmap, tal/link: fix sign warnings in examples.
[ccan] / ccan / container_of / test / compile_fail-types.c
index 69f02daf289d3ff8cfe82db09029f49f777babac..fbb97a9ee4f9db1df8f39b063086e18df3eb3994 100644 (file)
@@ -1,4 +1,4 @@
-#include "container_of/container_of.h"
+#include <ccan/container_of/container_of.h>
 #include <stdlib.h>
 
 struct foo {
@@ -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;
 }