]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/file_analysis.c
Fix missing va_end()s
[ccan] / tools / ccanlint / file_analysis.c
index abcf0795e7111dd3c4432332778e398cca05157a..25e36743c51906206f1d99179b083f26a7084adf 100644 (file)
@@ -357,6 +357,7 @@ enum line_compiled get_ccan_line_pp(struct pp_conditions *cond,
        }
        ret = get_pp(cond, head);
        tal_free(head);
+       va_end(ap);
        return ret;
 }
 
@@ -417,7 +418,7 @@ void score_file_error(struct score *score, struct ccan_file *f, unsigned line,
 }
 
 
-char *get_or_compile_info(const void *ctx, const char *dir)
+char *get_or_compile_info(const void *ctx UNNEEDED, const char *dir)
 {
        struct manifest *m = get_manifest(NULL, dir);