diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-02-16 19:50:15 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 18:12:16 +0200 |
commit | 6d24eb2b752354d91e518419f3f5ed421cf06f21 (patch) | |
tree | 1f489f13025b88654c2e74810b6ea5aab1fb23ba /isisd/isis_redist.c | |
parent | zebra: Enable fpm module to connect to remote fpm server (diff) | |
download | frr-6d24eb2b752354d91e518419f3f5ed421cf06f21.tar.xz frr-6d24eb2b752354d91e518419f3f5ed421cf06f21.zip |
isisd: fix assert warning
icc (the Intel C Compiler) "knows" that assert() can be disabled by
setting specific optimisation flags, and therefore emits a warning about
missing a return value after an "always-error" assert.
Workaround by returning a value - this probably needs discussion and a
better fix (for all places where the code needs to abort due to internal
errors).
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_redist.c')
-rw-r--r-- | isisd/isis_redist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c index 5311b5c69..1ce6a925e 100644 --- a/isisd/isis_redist.c +++ b/isisd/isis_redist.c @@ -52,6 +52,7 @@ redist_protocol(int family) return 1; assert(!"Unsupported address family!"); + return 0; } static int |