tools: fix warnings from Ubuntu strict compiler.
[ccan] / tools / ccanlint / compulsory_tests / run_tests.c
index 763b54a3e66924e38a8611680992cccec6101c58..16a07aee1cca555647bd2e0731ecee11f31c5eb2 100644 (file)
@@ -104,6 +104,9 @@ static const char *describe_run_tests(struct manifest *m,
        return descrip;
 }
 
+/* Gcc's warn_unused_result is fascist bullshit. */
+#define doesnt_matter()
+
 static void run_under_debugger(struct manifest *m, void *check_result)
 {
        char *command;
@@ -116,7 +119,8 @@ static void run_under_debugger(struct manifest *m, void *check_result)
        first = list_top(list, struct run_tests_result, list);
        command = talloc_asprintf(m, "gdb -ex 'break tap.c:136' -ex 'run' %s",
                                  first->file->compiled);
-       system(command);
+       if (system(command))
+               doesnt_matter();
 }
 
 struct ccanlint run_tests = {