]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/tests_pass_valgrind.c
Merge Makefile rewrite into master
[ccan] / tools / ccanlint / tests / tests_pass_valgrind.c
index 2f4df18b47e4382a3ea8d7032f78411fece3b536..90e42349715f9ff2c0ef706e54123072f5f52212 100644 (file)
@@ -158,7 +158,7 @@ static const char *concat(struct score *score, char *bits[])
 
 /* FIXME: Run examples, too! */
 static void do_run_tests_vg(struct manifest *m,
-                           unsigned int *timeleft,
+                           unsigned int *timeleft UNNEEDED,
                            struct score *score)
 {
        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,
-                           unsigned int *timeleft,
+                           unsigned int *timeleft UNNEEDED,
                            struct score *score)
 {
        struct ccan_file *i;
@@ -255,8 +255,9 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score)
                          concat(score, per_file_options(&tests_pass_valgrind,
                                                         first->file)),
                          valgrind_suppress, first->file->compiled[COMPILE_NORMAL]);
-       if (system(command))
+       if (system(command)) {
                doesnt_matter();
+       }
 }
 
 struct ccanlint tests_pass_valgrind = {