Commit dfafd0a1 authored by Rusty Russell's avatar Rusty Russell

ccanlint: remove empty statement warnings.

Since doesnt_matter() expands to nothing, GCC -Wextra suggests { }.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 89fcdf8c
...@@ -139,8 +139,9 @@ static void run_under_debugger(struct manifest *m, struct score *score) ...@@ -139,8 +139,9 @@ static void run_under_debugger(struct manifest *m, struct score *score)
command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s", command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s",
first->file->compiled[COMPILE_NORMAL]); first->file->compiled[COMPILE_NORMAL]);
if (system(command)) if (system(command)) {
doesnt_matter(); doesnt_matter();
}
} }
struct ccanlint tests_pass = { struct ccanlint tests_pass = {
......
...@@ -255,8 +255,9 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score) ...@@ -255,8 +255,9 @@ static void run_under_debugger_vg(struct manifest *m, struct score *score)
concat(score, per_file_options(&tests_pass_valgrind, concat(score, per_file_options(&tests_pass_valgrind,
first->file)), first->file)),
valgrind_suppress, first->file->compiled[COMPILE_NORMAL]); valgrind_suppress, first->file->compiled[COMPILE_NORMAL]);
if (system(command)) if (system(command)) {
doesnt_matter(); doesnt_matter();
}
} }
struct ccanlint tests_pass_valgrind = { struct ccanlint tests_pass_valgrind = {
......
...@@ -56,8 +56,9 @@ static void run_under_debugger(struct manifest *m, struct score *score) ...@@ -56,8 +56,9 @@ static void run_under_debugger(struct manifest *m, struct score *score)
command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s", command = tal_fmt(m, "gdb -ex 'break tap.c:139' -ex 'run' %s",
first->file->compiled[COMPILE_NOFEAT]); first->file->compiled[COMPILE_NOFEAT]);
if (system(command)) if (system(command)) {
doesnt_matter(); doesnt_matter();
}
} }
struct ccanlint tests_pass_without_features = { struct ccanlint tests_pass_without_features = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment