From d63b4e179e05d5dbd114a0a2493f0feb076c6d08 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Jun 2020 10:27:06 +0200 Subject: Fix CASE macro: tprintf is returns void, so return in separate statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- print.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/print.c b/print.c index e74fad8..42e80d5 100644 --- a/print.c +++ b/print.c @@ -22,7 +22,12 @@ #define CASE(N)\ - if (proc->args[arg_index] == N) return tprintf(proc, "%s", #N) + do {\ + if (proc->args[arg_index] == N) {\ + tprintf(proc, "%s", #N);\ + return;\ + }\ + } while (0) #define FLAGS_BEGIN\ do {\ -- cgit v1.2.3-70-g09d2