]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/info_exists.c
ccanlint: Move ccanlint test options from _info comments to code
[ccan] / tools / ccanlint / tests / info_exists.c
index 9f6f2066ddf90dc5d0149f68ee62827ae7d2f3cd..8f01946f7ff018dfaa01d0acdf6e17d8f2e86cdb 100644 (file)
 #include <ccan/noerr/noerr.h>
 
 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"
@@ -57,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;