]> git.proxmox.com Git - mirror_frr.git/commitdiff
isisd: fix assert warning
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 16 Feb 2016 18:50:15 +0000 (19:50 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 16:12:16 +0000 (12:12 -0400)
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>
isisd/isis_redist.c

index 5311b5c69c8de94390fd1648fe7e2b3fd98b5599..1ce6a925e77a9a217c05caed764d3dbfba56cc07 100644 (file)
@@ -52,6 +52,7 @@ redist_protocol(int family)
     return 1;
 
   assert(!"Unsupported address family!");
+  return 0;
 }
 
 static int