From f1fc327c7eb00634d2c2b08c2a6f6e44a626ef04 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 13 May 2015 12:44:50 +0200 Subject: 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 --- lib/command.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/command.c b/lib/command.c index c70391d7..8ae27de9 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2018,6 +2018,7 @@ cmd_entry_function_desc (const char *src, struct cmd_token *token) default: assert(0); + return NULL; } } -- cgit v1.2.3