X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fccanlint%2Ftests%2Ftests_helpers_compile.c;h=0f728fb9420160b7bf852ce8210289056d59a163;hp=c1b82b8d2aa719564ed92069c4f32da1efebe138;hb=HEAD;hpb=af5b1a18948345c5f9f9abf4eda3ab9fe0aa9a9f;ds=sidebyside diff --git a/tools/ccanlint/tests/tests_helpers_compile.c b/tools/ccanlint/tests/tests_helpers_compile.c index c1b82b8d..0f728fb9 100644 --- a/tools/ccanlint/tests/tests_helpers_compile.c +++ b/tools/ccanlint/tests/tests_helpers_compile.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -15,7 +14,7 @@ #include #include "reduce_features.h" -static const char *can_run(struct manifest *m) +static const char *can_run(struct manifest *m UNNEEDED) { if (safe_mode) return "Safe mode enabled"; @@ -34,7 +33,7 @@ static bool compile(struct manifest *m, } static void compile_test_helpers(struct manifest *m, - unsigned int *timeleft, + unsigned int *timeleft UNNEEDED, struct score *score, const char *flags, enum compile_type ctype) @@ -84,7 +83,7 @@ struct ccanlint 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) return NULL; @@ -97,8 +96,7 @@ static void do_compile_test_helpers_without_features(struct manifest *m, { char *flags; - flags = talloc_asprintf(score, "%s %s", cflags, - REDUCE_FEATURES_FLAGS); + flags = tal_fmt(score, "%s %s", cflags, REDUCE_FEATURES_FLAGS); compile_test_helpers(m, timeleft, score, flags, COMPILE_NOFEAT); }