]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_pass_without_features.c
ccanlint: remove empty statement warnings.
[ccan] / tools / ccanlint / tests / tests_pass_without_features.c
index cc650c24c88fdf1761cc8f089f75c1b213ec2365..15b161ef9c20a06f9e2bbfe22749cddd14ece7ed 100644 (file)
@@ -1,6 +1,5 @@
 #include <tools/ccanlint/ccanlint.h>
 #include <tools/tools.h>
 #include <tools/ccanlint/ccanlint.h>
 #include <tools/tools.h>
-#include <ccan/talloc/talloc.h>
 #include <ccan/str/str.h>
 #include <ccan/foreach/foreach.h>
 #include <sys/types.h>
 #include <ccan/str/str.h>
 #include <ccan/foreach/foreach.h>
 #include <sys/types.h>
@@ -17,7 +16,6 @@
 
 /* We don't do these under valgrind: too slow! */
 static void do_run_tests_no_features(struct manifest *m,
 
 /* We don't do these under valgrind: too slow! */
 static void do_run_tests_no_features(struct manifest *m,
-                                    bool keep,
                                     unsigned int *timeleft,
                                     struct score *score)
 {
                                     unsigned int *timeleft,
                                     struct score *score)
 {
@@ -56,11 +54,11 @@ static void run_under_debugger(struct manifest *m, struct score *score)
        if (!ask("Should I run the first failing test under the debugger?"))
                return;
 
        if (!ask("Should I run the first failing test under the debugger?"))
                return;
 
-       command = talloc_asprintf(m, "gdb -ex 'break tap.c:139' -ex 'run' %s",
-                                 first->file->compiled
-                                 [COMPILE_NOFEAT]);
-       if (system(command))
+       command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s",
+                         first->file->compiled[COMPILE_NOFEAT]);
+       if (system(command)) {
                doesnt_matter();
                doesnt_matter();
+       }
 }
 
 struct ccanlint tests_pass_without_features = {
 }
 
 struct ccanlint tests_pass_without_features = {