diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2016-02-16 19:50:15 +0100 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 12:12:16 -0400 |
| commit | 6d24eb2b752354d91e518419f3f5ed421cf06f21 (patch) | |
| tree | 1f489f13025b88654c2e74810b6ea5aab1fb23ba | |
| parent | 711ff0ba94d29f059dde90f3c24db307e0d92d4c (diff) | |
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>
| -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 5311b5c69c..1ce6a925e7 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 |
