From dfafd0a1f522277c9be5fc589885db38f706d108 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 6 Nov 2016 17:13:53 +1030 Subject: [PATCH] ccanlint: remove empty statement warnings. Since doesnt_matter() expands to nothing, GCC -Wextra suggests { }. Signed-off-by: Rusty Russell --- tools/ccanlint/tests/tests_pass.c | 3 ++- tools/ccanlint/tests/tests_pass_valgrind.c | 3 ++- tools/ccanlint/tests/tests_pass_without_features.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/ccanlint/tests/tests_pass.c b/tools/ccanlint/tests/tests_pass.c index af71dbe4..ba6103de 100644 --- a/tools/ccanlint/tests/tests_pass.c +++ b/tools/ccanlint/tests/tests_pass.c @@ -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", first->file->compiled[COMPILE_NORMAL]); - if (system(command)) + if (system(command)) { doesnt_matter(); + } } struct ccanlint tests_pass = { diff --git a/tools/ccanlint/tests/tests_pass_valgrind.c b/tools/ccanlint/tests/tests_pass_valgrind.c index 700efeb9..90e42349 100644 --- a/tools/ccanlint/tests/tests_pass_valgrind.c +++ b/tools/ccanlint/tests/tests_pass_valgrind.c @@ -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 = { diff --git a/tools/ccanlint/tests/tests_pass_without_features.c b/tools/ccanlint/tests/tests_pass_without_features.c index 999c4eda..15b161ef 100644 --- a/tools/ccanlint/tests/tests_pass_without_features.c +++ b/tools/ccanlint/tests/tests_pass_without_features.c @@ -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", first->file->compiled[COMPILE_NOFEAT]); - if (system(command)) + if (system(command)) { doesnt_matter(); + } } struct ccanlint tests_pass_without_features = { -- 2.39.2