summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-05-13 12:44:50 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2015-05-14 14:31:06 +0200
commitf1fc327c7eb00634d2c2b08c2a6f6e44a626ef04 (patch)
tree4a14fc6fd695e76a77db703880fb300e079eb8cc
parent1416293f9d8f09cb792ce0ff9b734bff71697909 (diff)
downloadquagga-f1fc327c7eb00634d2c2b08c2a6f6e44a626ef04.tar.bz2
quagga-f1fc327c7eb00634d2c2b08c2a6f6e44a626ef04.tar.xz
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>
-rw-r--r--lib/command.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}