X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Finfo_exists.c;h=8f01946f7ff018dfaa01d0acdf6e17d8f2e86cdb;hp=86101aa9eae8cc8cca98ba4d31484b3ac9244d8a;hb=0fe2d094b262f6e8bed798930e8c4716d33d5dc7;hpb=dc8042b42500f79f613b1197df6cdf739615a89f diff --git a/tools/ccanlint/tests/info_exists.c b/tools/ccanlint/tests/info_exists.c index 86101aa9..8f01946f 100644 --- a/tools/ccanlint/tests/info_exists.c +++ b/tools/ccanlint/tests/info_exists.c @@ -14,13 +14,13 @@ #include static void check_has_info(struct manifest *m, - unsigned int *timeleft, + unsigned int *timeleft UNNEEDED, struct score *score) { if (m->info_file) { score->pass = true; score->score = score->total; - add_info_options(m->info_file); + add_info_options(m); } else { score->error = tal_strdup(score, "You have no _info file.\n\n" @@ -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;