X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Finfo_exists.c;h=5e4459bcbe02d362213bcf35e99a33c37c14f175;hp=86101aa9eae8cc8cca98ba4d31484b3ac9244d8a;hb=615189ae6de685ae6eb5a19b877340d731bba747;hpb=dc8042b42500f79f613b1197df6cdf739615a89f diff --git a/tools/ccanlint/tests/info_exists.c b/tools/ccanlint/tests/info_exists.c index 86101aa9..5e4459bc 100644 --- a/tools/ccanlint/tests/info_exists.c +++ b/tools/ccanlint/tests/info_exists.c @@ -14,7 +14,7 @@ #include static void check_has_info(struct manifest *m, - unsigned int *timeleft, + unsigned int *timeleft UNNEEDED, struct score *score) { if (m->info_file) { @@ -31,8 +31,9 @@ static void check_has_info(struct manifest *m, } static const char template[] = - "#include \n" "#include \"config.h\"\n" + "#include \n" + "#include \n" "\n" "/**\n" " * %s - YOUR-ONE-LINE-DESCRIPTION-HERE\n" @@ -56,7 +57,8 @@ static const char template[] = " return 1;\n" "}\n"; -static void create_info_template(struct manifest *m, struct score *score) +static void create_info_template(struct manifest *m, + struct score *score UNNEEDED) { FILE *info; const char *filename;