summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-05-13 12:44:50 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-06-08 15:03:13 -0400
commitdc1b72dca39ffa190c9cbc853a5d899f57386f0a (patch)
treed035c6a43b0841369795e66f6488f96e15c40a65 /lib/command.c
parent9b6710b406ff7ba6e6b6d356a678edb746066424 (diff)
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 <equinox@opensourcerouting.org> (cherry picked from commit f1fc327c7eb00634d2c2b08c2a6f6e44a626ef04)
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}