From 9c43890f0d5ddc1cb9e911e3e5d23589c3f66d10 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sat, 17 Sep 2016 20:23:26 +0000 Subject: [PATCH] (my_systemv): 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 Signed-off-by: Andrew Borodin --- lib/utilunix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utilunix.c b/lib/utilunix.c index 24e466bdf..be85567d9 100644 --- a/lib/utilunix.c +++ b/lib/utilunix.c @@ -452,7 +452,7 @@ my_systemv (const char *command, char *const argv[]) execvp (command, argv); my_exit (127); /* Exec error */ } - break; + /* no break here, or unreachable-code warning by no returning my_exit() */ default: status = 0; break;