]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/info_exists.c
ccanlint: Remove unused variable
[ccan] / tools / ccanlint / tests / info_exists.c
index 86101aa9eae8cc8cca98ba4d31484b3ac9244d8a..5e4459bcbe02d362213bcf35e99a33c37c14f175 100644 (file)
@@ -14,7 +14,7 @@
 #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) {
@@ -31,8 +31,9 @@ static void check_has_info(struct manifest *m,
 }
 
 static const char template[] =
-       "#include <string.h>\n"
        "#include \"config.h\"\n"
+       "#include <stdio.h>\n"
+       "#include <string.h>\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;