X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Fexamples_compile.c;h=cb71bf8329db7e54227b7c26af94e97cfb2b18e6;hp=745860668beddc8e158d3d5226dc3a4d0b4b849b;hb=9961094e2422cf0c2d9cb21387da7c65ddddafe2;hpb=29490fe08d33d35f1ac037d905d68028e6e1a075 diff --git a/tools/ccanlint/tests/examples_compile.c b/tools/ccanlint/tests/examples_compile.c index 74586066..cb71bf83 100644 --- a/tools/ccanlint/tests/examples_compile.c +++ b/tools/ccanlint/tests/examples_compile.c @@ -485,7 +485,7 @@ static struct ccan_file *mangle_example(struct manifest *m, return NULL; contents = mangle(m, lines); - if (write(fd, contents, strlen(contents)) != strlen(contents)) { + if (write(fd, contents, strlen(contents)) != (int)strlen(contents)) { close(fd); return NULL; } @@ -550,7 +550,7 @@ static unsigned int try_compiling(struct manifest *m, } static void build_examples(struct manifest *m, - unsigned int *timeleft, struct score *score) + unsigned int *timeleft UNNEEDED, struct score *score) { struct ccan_file *i; char **prev = NULL;