From 6d24eb2b752354d91e518419f3f5ed421cf06f21 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 16 Feb 2016 19:50:15 +0100 Subject: [PATCH] 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 --- isisd/isis_redist.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5