From 20a6c6f31fac606910a8794b35783ae9ccd2230b Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 14 Jul 2017 16:48:41 +0200 Subject: *: fix GCC 7 warnings/issues The label initializer & nhrpd variable are just to shut up GCC 7, the other two are actual bugs. Signed-off-by: David Lamparter --- lib/command_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/command_graph.c') diff --git a/lib/command_graph.c b/lib/command_graph.c index 8cfb333575..4254b91d95 100644 --- a/lib/command_graph.c +++ b/lib/command_graph.c @@ -349,7 +349,7 @@ cmd_merge_nodes (struct graph *oldgraph, struct graph *newgraph, if (i == vector_active (old->to) && direction > 0) { assert (vector_count (cnew->from) == - cmd_nodes_link (cnew, cnew) ? 2 : 1); + (cmd_nodes_link (cnew, cnew) ? 2 : 1)); graph_remove_edge (new, cnew); cmd_reparent_tree (newgraph, oldgraph, cnew); -- cgit v1.2.3