From fc400c29f3c64a845f9e9ae361b2ee4f279fb705 Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Sat, 17 Sep 2016 20:23:26 +0000
Subject: [PATCH] (utilunix.c) Cleanup unreachable-code warning
Compiler with my_exit() 'noreturn' knowledge will complain about
never reachable break statement.
Reported by clang compiler.
(Maybe there is a better code sequence)
Signed-off-by: Andreas Mohr <and@gmx.li>
---
lib/utilunix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/utilunix.c b/lib/utilunix.c
index de42179..e99332f 100644
a
|
b
|
my_systemv (const char *command, char *const argv[]) |
453 | 453 | execvp (command, argv); |
454 | 454 | my_exit (127); /* Exec error */ |
455 | 455 | } |
456 | | break; |
| 456 | /* no break here, or unreachable-code warning by no returning my_exit() */ |
457 | 457 | default: |
458 | 458 | status = 0; |
459 | 459 | break; |