Browse Source

ccanlint: mark unused parameters.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 9 years ago
parent
commit
1ddb7420f1
32 changed files with 67 additions and 49 deletions
  1. 3 2
      tools/ccanlint/tests/avoids_cpp_reserved.c
  2. 2 1
      tools/ccanlint/tests/depends_accurate.c
  3. 3 2
      tools/ccanlint/tests/depends_build.c
  4. 2 2
      tools/ccanlint/tests/depends_build_without_features.c
  5. 3 2
      tools/ccanlint/tests/depends_exist.c
  6. 1 1
      tools/ccanlint/tests/examples_exist.c
  7. 1 1
      tools/ccanlint/tests/examples_relevant.c
  8. 1 1
      tools/ccanlint/tests/examples_run.c
  9. 2 1
      tools/ccanlint/tests/hash_if.c
  10. 2 1
      tools/ccanlint/tests/headers_idempotent.c
  11. 2 1
      tools/ccanlint/tests/info_compiles.c
  12. 3 2
      tools/ccanlint/tests/info_documentation_exists.c
  13. 3 2
      tools/ccanlint/tests/info_exists.c
  14. 3 2
      tools/ccanlint/tests/info_ported.c
  15. 1 1
      tools/ccanlint/tests/info_summary_single_line.c
  16. 2 1
      tools/ccanlint/tests/license_comment.c
  17. 1 1
      tools/ccanlint/tests/license_depends_compat.c
  18. 2 1
      tools/ccanlint/tests/license_exists.c
  19. 1 1
      tools/ccanlint/tests/license_file_compat.c
  20. 3 2
      tools/ccanlint/tests/main_header_compiles.c
  21. 2 1
      tools/ccanlint/tests/main_header_exists.c
  22. 2 2
      tools/ccanlint/tests/module_builds.c
  23. 3 2
      tools/ccanlint/tests/module_links.c
  24. 1 1
      tools/ccanlint/tests/no_trailing_whitespace.c
  25. 3 2
      tools/ccanlint/tests/objects_build.c
  26. 1 1
      tools/ccanlint/tests/objects_build_with_stringchecks.c
  27. 1 1
      tools/ccanlint/tests/objects_build_without_features.c
  28. 2 1
      tools/ccanlint/tests/reduce_features.c
  29. 3 3
      tools/ccanlint/tests/tests_compile.c
  30. 3 2
      tools/ccanlint/tests/tests_exist.c
  31. 3 3
      tools/ccanlint/tests/tests_helpers_compile.c
  32. 2 2
      tools/ccanlint/tests/tests_pass_valgrind.c

+ 3 - 2
tools/ccanlint/tests/avoids_cpp_reserved.c

@@ -13,7 +13,7 @@
 #include <string.h>
 #include <string.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -34,7 +34,8 @@ static struct ccan_file *main_header(struct manifest *m)
 }
 }
 
 
 static void check_headers_no_cpp(struct manifest *m,
 static void check_headers_no_cpp(struct manifest *m,
-				 unsigned int *timeleft, struct score *score)
+				 unsigned int *timeleft UNNEEDED,
+				 struct score *score)
 {
 {
 	char *contents;
 	char *contents;
 	char *tmpsrc, *tmpobj, *cmdout;
 	char *tmpsrc, *tmpobj, *cmdout;

+ 2 - 1
tools/ccanlint/tests/depends_accurate.c

@@ -70,7 +70,8 @@ static bool check_dep_includes(struct manifest *m,
 }
 }
 
 
 static void check_depends_accurate(struct manifest *m,
 static void check_depends_accurate(struct manifest *m,
-				   unsigned int *timeleft, struct score *score)
+				   unsigned int *timeleft UNNEEDED,
+				   struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;
 	unsigned int i, core_deps, test_deps;
 	unsigned int i, core_deps, test_deps;

+ 3 - 2
tools/ccanlint/tests/depends_build.c

@@ -15,7 +15,7 @@
 #include <ctype.h>
 #include <ctype.h>
 #include "build.h"
 #include "build.h"
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -76,7 +76,8 @@ char *build_submodule(struct manifest *m, const char *flags,
 }
 }
 
 
 static void check_depends_built(struct manifest *m,
 static void check_depends_built(struct manifest *m,
-				unsigned int *timeleft, struct score *score)
+				unsigned int *timeleft UNNEEDED,
+				struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;
 
 

+ 2 - 2
tools/ccanlint/tests/depends_build_without_features.c

@@ -16,7 +16,7 @@
 #include "reduce_features.h"
 #include "reduce_features.h"
 #include "build.h"
 #include "build.h"
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -24,7 +24,7 @@ static const char *can_build(struct manifest *m)
 }
 }
 
 
 static void check_depends_built_without_features(struct manifest *m,
 static void check_depends_built_without_features(struct manifest *m,
-						 unsigned int *timeleft,
+						 unsigned int *timeleft UNNEEDED,
 						 struct score *score)
 						 struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;

+ 3 - 2
tools/ccanlint/tests/depends_exist.c

@@ -46,7 +46,8 @@ static bool add_dep(struct manifest *m,
 
 
 /* FIXME: check this is still true once we reduce features. */
 /* FIXME: check this is still true once we reduce features. */
 static void check_depends_exist(struct manifest *m,
 static void check_depends_exist(struct manifest *m,
-				unsigned int *timeleft, struct score *score)
+				unsigned int *timeleft UNNEEDED,
+				struct score *score)
 {
 {
 	unsigned int i;
 	unsigned int i;
 	char **deps;
 	char **deps;
@@ -77,7 +78,7 @@ static void check_depends_exist(struct manifest *m,
 }
 }
 
 
 static void check_test_depends_exist(struct manifest *m,
 static void check_test_depends_exist(struct manifest *m,
-				     unsigned int *timeleft,
+				     unsigned int *timeleft UNNEEDED,
 				     struct score *score)
 				     struct score *score)
 {
 {
 	unsigned int i;
 	unsigned int i;

+ 1 - 1
tools/ccanlint/tests/examples_exist.c

@@ -62,7 +62,7 @@ static char *add_example(struct manifest *m, struct ccan_file *source,
 
 
 /* FIXME: We should have one example per function in header. */
 /* FIXME: We should have one example per function in header. */
 static void extract_examples(struct manifest *m,
 static void extract_examples(struct manifest *m,
-			     unsigned int *timeleft,
+			     unsigned int *timeleft UNNEEDED,
 			     struct score *score)
 			     struct score *score)
 {
 {
 	struct ccan_file *f, *mainh = NULL; /* gcc complains uninitialized */
 	struct ccan_file *f, *mainh = NULL; /* gcc complains uninitialized */

+ 1 - 1
tools/ccanlint/tests/examples_relevant.c

@@ -14,7 +14,7 @@
 #include <ctype.h>
 #include <ctype.h>
 
 
 static void examples_relevant_check(struct manifest *m,
 static void examples_relevant_check(struct manifest *m,
-				    unsigned int *timeleft,
+				    unsigned int *timeleft UNNEEDED,
 				    struct score *score)
 				    struct score *score)
 {
 {
 	struct ccan_file *f;
 	struct ccan_file *f;

+ 1 - 1
tools/ccanlint/tests/examples_run.c

@@ -188,7 +188,7 @@ static char *unexpected(struct ccan_file *i, const char *input,
 }
 }
 
 
 static void run_examples(struct manifest *m,
 static void run_examples(struct manifest *m,
-			 unsigned int *timeleft, struct score *score)
+			 unsigned int *timeleft UNNEEDED, struct score *score)
 {
 {
 	struct ccan_file *i;
 	struct ccan_file *i;
 	struct list_head *list;
 	struct list_head *list;

+ 2 - 1
tools/ccanlint/tests/hash_if.c

@@ -15,7 +15,8 @@
 #include <ctype.h>
 #include <ctype.h>
 
 
 static void check_hash_if(struct manifest *m,
 static void check_hash_if(struct manifest *m,
-			  unsigned int *timeleft, struct score *score)
+			  unsigned int *timeleft UNNEEDED,
+			  struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;
 	const char *explanation =
 	const char *explanation =

+ 2 - 1
tools/ccanlint/tests/headers_idempotent.c

@@ -178,7 +178,8 @@ static void check_idem(struct ccan_file *f, struct score *score)
 }
 }
 
 
 static void check_idempotent(struct manifest *m,
 static void check_idempotent(struct manifest *m,
-			     unsigned int *timeleft, struct score *score)
+			     unsigned int *timeleft UNNEEDED,
+			     struct score *score)
 {
 {
 	struct ccan_file *f;
 	struct ccan_file *f;
 
 

+ 2 - 1
tools/ccanlint/tests/info_compiles.c

@@ -16,7 +16,8 @@
 #include <ctype.h>
 #include <ctype.h>
 
 
 static void check_info_compiles(struct manifest *m,
 static void check_info_compiles(struct manifest *m,
-				unsigned int *timeleft, struct score *score)
+				unsigned int *timeleft UNNEEDED,
+				struct score *score)
 {
 {
 	char *info_c_file, *info, *output;
 	char *info_c_file, *info, *output;
 	int fd;
 	int fd;

+ 3 - 2
tools/ccanlint/tests/info_documentation_exists.c

@@ -25,7 +25,8 @@ static struct ccanlint info_documentation_exists = {
 	.needs = "info_exists"
 	.needs = "info_exists"
 };
 };
 
 
-static void create_info_template_doc(struct manifest *m, struct score *score)
+static void create_info_template_doc(struct manifest *m,
+				     struct score *score UNNEEDED)
 {
 {
 	int fd;
 	int fd;
 	FILE *new;
 	FILE *new;
@@ -71,7 +72,7 @@ static void create_info_template_doc(struct manifest *m, struct score *score)
 }
 }
 
 
 static void check_info_documentation_exists(struct manifest *m,
 static void check_info_documentation_exists(struct manifest *m,
-					    unsigned int *timeleft,
+					    unsigned int *timeleft UNNEEDED,
 					    struct score *score)
 					    struct score *score)
 {
 {
 	struct list_head *infodocs = get_ccan_file_docs(m->info_file);
 	struct list_head *infodocs = get_ccan_file_docs(m->info_file);

+ 3 - 2
tools/ccanlint/tests/info_exists.c

@@ -14,7 +14,7 @@
 #include <ccan/noerr/noerr.h>
 #include <ccan/noerr/noerr.h>
 
 
 static void check_has_info(struct manifest *m,
 static void check_has_info(struct manifest *m,
-			   unsigned int *timeleft,
+			   unsigned int *timeleft UNNEEDED,
 			   struct score *score)
 			   struct score *score)
 {
 {
 	if (m->info_file) {
 	if (m->info_file) {
@@ -57,7 +57,8 @@ static const char template[] =
 	"	return 1;\n"
 	"	return 1;\n"
 	"}\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;
 	FILE *info;
 	const char *filename;
 	const char *filename;

+ 3 - 2
tools/ccanlint/tests/info_ported.c

@@ -27,8 +27,9 @@ static const char *can_build(struct manifest *m)
 	return tal_fmt(m, "'_info ported' says '%s'", msg);
 	return tal_fmt(m, "'_info ported' says '%s'", msg);
 }
 }
 
 
-static void check_info_ported(struct manifest *m,
-			      unsigned int *timeleft, struct score *score)
+static void check_info_ported(struct manifest *m UNNEEDED,
+			      unsigned int *timeleft UNNEEDED,
+			      struct score *score)
 {
 {
 	score->pass = true;
 	score->pass = true;
 	score->score = 1;
 	score->score = 1;

+ 1 - 1
tools/ccanlint/tests/info_summary_single_line.c

@@ -4,7 +4,7 @@
 #include <ccan/str/str.h>
 #include <ccan/str/str.h>
 
 
 static void check_info_summary_single_line(struct manifest *m,
 static void check_info_summary_single_line(struct manifest *m,
-					   unsigned int *timeleft,
+					   unsigned int *timeleft UNNEEDED,
 					   struct score *score)
 					   struct score *score)
 {
 {
 	struct list_head *infodocs = get_ccan_file_docs(m->info_file);
 	struct list_head *infodocs = get_ccan_file_docs(m->info_file);

+ 2 - 1
tools/ccanlint/tests/license_comment.c

@@ -36,7 +36,8 @@ static bool line_has_license_flavour(const char *line, const char *shortname)
 }
 }
 
 
 static void check_license_comment(struct manifest *m,
 static void check_license_comment(struct manifest *m,
-				  unsigned int *timeleft, struct score *score)
+				  unsigned int *timeleft UNNEEDED,
+				  struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;
 
 

+ 1 - 1
tools/ccanlint/tests/license_depends_compat.c

@@ -11,7 +11,7 @@
 #include <err.h>
 #include <err.h>
 
 
 static void check_license_depends_compat(struct manifest *m,
 static void check_license_depends_compat(struct manifest *m,
-					 unsigned int *timeleft,
+					 unsigned int *timeleft UNNEEDED,
 					 struct score *score)
 					 struct score *score)
 {
 {
 	struct manifest *i;
 	struct manifest *i;

+ 2 - 1
tools/ccanlint/tests/license_exists.c

@@ -94,7 +94,8 @@ static void handle_license_link(struct manifest *m, struct score *score)
 extern struct ccanlint license_exists;
 extern struct ccanlint license_exists;
 
 
 static void check_has_license(struct manifest *m,
 static void check_has_license(struct manifest *m,
-			      unsigned int *timeleft, struct score *score)
+			      unsigned int *timeleft UNNEEDED,
+			      struct score *score)
 {
 {
 	char buf[PATH_MAX];
 	char buf[PATH_MAX];
 	ssize_t len;
 	ssize_t len;

+ 1 - 1
tools/ccanlint/tests/license_file_compat.c

@@ -12,7 +12,7 @@
 #include <ccan/str/str.h>
 #include <ccan/str/str.h>
 
 
 static void check_license_file_compat(struct manifest *m,
 static void check_license_file_compat(struct manifest *m,
-				      unsigned int *timeleft,
+				      unsigned int *timeleft UNNEEDED,
 				      struct score *score)
 				      struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;

+ 3 - 2
tools/ccanlint/tests/main_header_compiles.c

@@ -13,7 +13,7 @@
 #include <string.h>
 #include <string.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -34,7 +34,8 @@ static struct ccan_file *main_header(struct manifest *m)
 }
 }
 
 
 static void check_includes_build(struct manifest *m,
 static void check_includes_build(struct manifest *m,
-				 unsigned int *timeleft, struct score *score)
+				 unsigned int *timeleft UNNEEDED,
+				 struct score *score)
 {
 {
 	char *contents;
 	char *contents;
 	char *tmpsrc, *tmpobj, *cmdout;
 	char *tmpsrc, *tmpobj, *cmdout;

+ 2 - 1
tools/ccanlint/tests/main_header_exists.c

@@ -14,7 +14,8 @@
 #include <ccan/noerr/noerr.h>
 #include <ccan/noerr/noerr.h>
 
 
 static void check_has_main_header(struct manifest *m,
 static void check_has_main_header(struct manifest *m,
-				  unsigned int *timeleft, struct score *score)
+				  unsigned int *timeleft UNNEEDED,
+				  struct score *score)
 {
 {
 	struct ccan_file *f;
 	struct ccan_file *f;
 
 

+ 2 - 2
tools/ccanlint/tests/module_builds.c

@@ -15,7 +15,7 @@
 #include <ctype.h>
 #include <ctype.h>
 #include "build.h"
 #include "build.h"
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -42,7 +42,7 @@ char *build_module(struct manifest *m,
 }
 }
 
 
 static void do_build(struct manifest *m,
 static void do_build(struct manifest *m,
-		     unsigned int *timeleft,
+		     unsigned int *timeleft UNNEEDED,
 		     struct score *score)
 		     struct score *score)
 {
 {
 	char *errstr;
 	char *errstr;

+ 3 - 2
tools/ccanlint/tests/module_links.c

@@ -14,7 +14,7 @@
 #include <string.h>
 #include <string.h>
 #include <ctype.h>
 #include <ctype.h>
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -65,7 +65,8 @@ static char *lib_list(const struct manifest *m)
 }
 }
 
 
 static void check_use_build(struct manifest *m,
 static void check_use_build(struct manifest *m,
-			    unsigned int *timeleft, struct score *score)
+			    unsigned int *timeleft UNNEEDED,
+			    struct score *score)
 {
 {
 	char *contents;
 	char *contents;
 	char *tmpfile, *cmdout;
 	char *tmpfile, *cmdout;

+ 1 - 1
tools/ccanlint/tests/no_trailing_whitespace.c

@@ -21,7 +21,7 @@ static char *get_trailing_whitespace(const tal_t *ctx, const char *line)
 }
 }
 
 
 static void check_trailing_whitespace(struct manifest *m,
 static void check_trailing_whitespace(struct manifest *m,
-				      unsigned int *timeleft,
+				      unsigned int *timeleft UNNEEDED,
 				      struct score *score)
 				      struct score *score)
 {
 {
 	struct list_head *list;
 	struct list_head *list;

+ 3 - 2
tools/ccanlint/tests/objects_build.c

@@ -15,7 +15,7 @@
 #include <ctype.h>
 #include <ctype.h>
 #include "build.h"
 #include "build.h"
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -74,7 +74,8 @@ void build_objects(struct manifest *m,
 }
 }
 
 
 static void check_objs_build(struct manifest *m,
 static void check_objs_build(struct manifest *m,
-			     unsigned int *timeleft, struct score *score)
+			     unsigned int *timeleft UNNEEDED,
+			     struct score *score)
 {
 {
 	const char *flags;
 	const char *flags;
 
 

+ 1 - 1
tools/ccanlint/tests/objects_build_with_stringchecks.c

@@ -92,7 +92,7 @@ static struct ccan_file *get_main_header(struct manifest *m)
 }
 }
 
 
 static void build_objects_with_stringchecks(struct manifest *m,
 static void build_objects_with_stringchecks(struct manifest *m,
-					    unsigned int *timeleft,
+					    unsigned int *timeleft UNNEEDED,
 					    struct score *score)
 					    struct score *score)
 {
 {
 	struct ccan_file *i;
 	struct ccan_file *i;

+ 1 - 1
tools/ccanlint/tests/objects_build_without_features.c

@@ -4,7 +4,7 @@
 #include "build.h"
 #include "build.h"
 
 
 static void check_objs_build_without_features(struct manifest *m,
 static void check_objs_build_without_features(struct manifest *m,
-					      unsigned int *timeleft,
+					      unsigned int *timeleft UNNEEDED,
 					      struct score *score)
 					      struct score *score)
 {
 {
 	const char *flags = tal_fmt(score, "%s %s",
 	const char *flags = tal_fmt(score, "%s %s",

+ 2 - 1
tools/ccanlint/tests/reduce_features.c

@@ -130,7 +130,8 @@ static struct htable_option *get_config_options(struct manifest *m)
 }
 }
 
 
 static void do_reduce_features(struct manifest *m,
 static void do_reduce_features(struct manifest *m,
-			       unsigned int *timeleft, struct score *score)
+			       unsigned int *timeleft UNNEEDED,
+			       struct score *score)
 {
 {
 	struct htable_option *options_used, *options_avail, *options;
 	struct htable_option *options_used, *options_avail, *options;
 	struct htable_option_iter i;
 	struct htable_option_iter i;

+ 3 - 3
tools/ccanlint/tests/tests_compile.c

@@ -16,7 +16,7 @@
 #include "reduce_features.h"
 #include "reduce_features.h"
 #include "tests_compile.h"
 #include "tests_compile.h"
 
 
-static const char *can_build(struct manifest *m)
+static const char *can_build(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -54,7 +54,7 @@ char *test_obj_list(const struct manifest *m, bool link_with_module,
 	return list;
 	return list;
 }
 }
 
 
-char *test_lib_list(const struct manifest *m, enum compile_type ctype)
+char *test_lib_list(const struct manifest *m, enum compile_type ctype UNNEEDED)
 {
 {
 	unsigned int i;
 	unsigned int i;
 	char **libs;
 	char **libs;
@@ -211,7 +211,7 @@ struct ccanlint tests_compile = {
 
 
 REGISTER_TEST(tests_compile);
 REGISTER_TEST(tests_compile);
 
 
-static const char *features_reduced(struct manifest *m)
+static const char *features_reduced(struct manifest *m UNNEEDED)
 {
 {
 	if (features_were_reduced)
 	if (features_were_reduced)
 		return NULL;
 		return NULL;

+ 3 - 2
tools/ccanlint/tests/tests_exist.c

@@ -22,7 +22,7 @@ static struct ccanlint tests_exist = {
 };
 };
 REGISTER_TEST(tests_exist);
 REGISTER_TEST(tests_exist);
 
 
-static void handle_no_tests(struct manifest *m, struct score *score)
+static void handle_no_tests(struct manifest *m, struct score *score UNNEEDED)
 {
 {
 	FILE *run;
 	FILE *run;
 	struct ccan_file *i;
 	struct ccan_file *i;
@@ -104,7 +104,8 @@ static void handle_no_tests(struct manifest *m, struct score *score)
 }
 }
 
 
 static void check_tests_exist(struct manifest *m,
 static void check_tests_exist(struct manifest *m,
-			    unsigned int *timeleft, struct score *score)
+			      unsigned int *timeleft UNNEEDED,
+			      struct score *score)
 {
 {
 	struct stat st;
 	struct stat st;
 	char *test_dir = path_join(m, m->dir, "test");
 	char *test_dir = path_join(m, m->dir, "test");

+ 3 - 3
tools/ccanlint/tests/tests_helpers_compile.c

@@ -14,7 +14,7 @@
 #include <ctype.h>
 #include <ctype.h>
 #include "reduce_features.h"
 #include "reduce_features.h"
 
 
-static const char *can_run(struct manifest *m)
+static const char *can_run(struct manifest *m UNNEEDED)
 {
 {
 	if (safe_mode)
 	if (safe_mode)
 		return "Safe mode enabled";
 		return "Safe mode enabled";
@@ -33,7 +33,7 @@ static bool compile(struct manifest *m,
 }
 }
 
 
 static void compile_test_helpers(struct manifest *m,
 static void compile_test_helpers(struct manifest *m,
-				 unsigned int *timeleft,
+				 unsigned int *timeleft UNNEEDED,
 				 struct score *score,
 				 struct score *score,
 				 const char *flags,
 				 const char *flags,
 				 enum compile_type ctype)
 				 enum compile_type ctype)
@@ -83,7 +83,7 @@ struct ccanlint tests_helpers_compile = {
 
 
 REGISTER_TEST(tests_helpers_compile);
 REGISTER_TEST(tests_helpers_compile);
 
 
-static const char *features_reduced(struct manifest *m)
+static const char *features_reduced(struct manifest *m UNNEEDED)
 {
 {
 	if (features_were_reduced)
 	if (features_were_reduced)
 		return NULL;
 		return NULL;

+ 2 - 2
tools/ccanlint/tests/tests_pass_valgrind.c

@@ -158,7 +158,7 @@ static const char *concat(struct score *score, char *bits[])
 
 
 /* FIXME: Run examples, too! */
 /* FIXME: Run examples, too! */
 static void do_run_tests_vg(struct manifest *m,
 static void do_run_tests_vg(struct manifest *m,
-			    unsigned int *timeleft,
+			    unsigned int *timeleft UNNEEDED,
 			    struct score *score)
 			    struct score *score)
 {
 {
 	struct ccan_file *i;
 	struct ccan_file *i;
@@ -199,7 +199,7 @@ static void do_run_tests_vg(struct manifest *m,
 }
 }
 
 
 static void do_leakcheck_vg(struct manifest *m,
 static void do_leakcheck_vg(struct manifest *m,
-			    unsigned int *timeleft,
+			    unsigned int *timeleft UNNEEDED,
 			    struct score *score)
 			    struct score *score)
 {
 {
 	struct ccan_file *i;
 	struct ccan_file *i;