summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-07-14 12:54:40 -0400
committerGitHub <noreply@github.com>2017-07-14 12:54:40 -0400
commite553b498f1e691800fd1bd94621350df941f9b44 (patch)
treef3ad6501b34fa3e58ced4cad357aeb9c09599eeb /lib/command_graph.c
parent9b42781b5de1c5053233666ac7d5d9e553a9f81e (diff)
parent33cef919327fe03dbce53a422caccecb3f09faca (diff)
Merge pull request #820 from opensourcerouting/gcc7
fix new warnings emitted by GCC 7
Diffstat (limited to 'lib/command_graph.c')
-rw-r--r--lib/command_graph.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index 8cfb333575..2ae294e5a2 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -348,8 +348,6 @@ cmd_merge_nodes (struct graph *oldgraph, struct graph *newgraph,
/* nothing found => add new to old */
if (i == vector_active (old->to) && direction > 0)
{
- assert (vector_count (cnew->from) ==
- cmd_nodes_link (cnew, cnew) ? 2 : 1);
graph_remove_edge (new, cnew);
cmd_reparent_tree (newgraph, oldgraph, cnew);