diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-12-16 13:38:58 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-12-16 13:38:58 +0100 |
commit | 16c150f27b836fc778b7e0aac4da9200ffe9efbe (patch) | |
tree | b2a7474af38a7fd48a75f040bafa179517e193c9 /staticd | |
parent | Merge pull request #10576 from louis-6wind/fix-l3vpn-igmetric (diff) | |
download | frr-16c150f27b836fc778b7e0aac4da9200ffe9efbe.tar.xz frr-16c150f27b836fc778b7e0aac4da9200ffe9efbe.zip |
lib, staticd: return values even after an assert
When compiling with -fsanitize=thread. I started getting this error:
staticd/static_zebra.c: In function ‘static_zebra_nht_get_prefix’:
staticd/static_zebra.c:316:1: error: control reaches end of non-void function [-Werror=return-type]
316 | }
| ^
Just to make future efforts still work, let's just make the compiler happy.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'staticd')
-rw-r--r-- | staticd/static_zebra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index de07ad8ef..cb3630447 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -313,6 +313,7 @@ static bool static_zebra_nht_get_prefix(const struct static_nexthop *nh, } assertf(0, "BUG: someone forgot to add nexthop type %u", nh->type); + return false; } void static_zebra_nht_register(struct static_nexthop *nh, bool reg) |