From dc1b72dca39ffa190c9cbc853a5d899f57386f0a Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 13 May 2015 12:44:50 +0200 Subject: [PATCH] lib: assert(0) still needs a return assert(0) is not guaranteed to not return since assert() in general can be optimised out when building without debug / with optimisation. This breaks the build in clang, which warns/errors about the missing return. Signed-off-by: David Lamparter (cherry picked from commit f1fc327c7eb00634d2c2b08c2a6f6e44a626ef04) --- lib/command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/command.c b/lib/command.c index 37603c46f8..015d97266d 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2020,6 +2020,7 @@ cmd_entry_function_desc (const char *src, struct cmd_token *token) default: assert(0); + return NULL; } } -- 2.39.5