commit | f1fc327c7eb00634d2c2b08c2a6f6e44a626ef04 | [log] [tgz] |
---|---|---|
author | David Lamparter <equinox@opensourcerouting.org> | Wed May 13 12:44:50 2015 +0200 |
committer | David Lamparter <equinox@opensourcerouting.org> | Thu May 14 14:31:06 2015 +0200 |
tree | 4a14fc6fd695e76a77db703880fb300e079eb8cc | |
parent | 1416293f9d8f09cb792ce0ff9b734bff71697909 [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>
diff --git a/lib/command.c b/lib/command.c index c70391d..8ae27de 100644 --- a/lib/command.c +++ b/lib/command.c
@@ -2018,6 +2018,7 @@ default: assert(0); + return NULL; } }