]> git.puffer.fish Git - matthieu/frr.git/commit
lib: assert(0) still needs a return
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 13 May 2015 10:44:50 +0000 (12:44 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 8 Jun 2016 19:03:13 +0000 (15:03 -0400)
commitdc1b72dca39ffa190c9cbc853a5d899f57386f0a
treed035c6a43b0841369795e66f6488f96e15c40a65
parent9b6710b406ff7ba6e6b6d356a678edb746066424
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)
lib/command.c