summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2019-06-03 20:30:19 +0200
committerGitHub <noreply@github.com>2019-06-03 20:30:19 +0200
commitdd3bbb159f022e43cda6d7ff6e41e62b0253a2a2 (patch)
treebc4d82fca69d6bf3fd81796f4942cbfb7a940488
parentMerge pull request #4447 from donaldsharp/pim_unused_functions (diff)
parentlib: Cleanup recent commit warn->werror issues in lib/routemap.c (diff)
downloadfrr-dd3bbb159f022e43cda6d7ff6e41e62b0253a2a2.tar.xz
frr-dd3bbb159f022e43cda6d7ff6e41e62b0253a2a2.zip
Merge pull request #4451 from donaldsharp/routemap_return
lib: Cleanup recent commit warn->werror issues in lib/routemap.c
-rw-r--r--lib/routemap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 807eec9c5..5883307b9 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -1333,6 +1333,13 @@ static route_map_event_t get_route_map_delete_event(route_map_event_t type)
*/
assert(0);
}
+
+ assert(0);
+ /*
+ * Return to make c happy but if we get here something has gone
+ * terribly terribly wrong, so yes this return makes no sense.
+ */
+ return RMAP_EVENT_CALL_ADDED;
}
/* Add match statement to route map. */