mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:02:58 +00:00
*: 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 <equinox@opensourcerouting.org>
This commit is contained in:
parent
acd738fc7f
commit
20a6c6f31f
@ -8308,7 +8308,7 @@ route_vty_out_detail_header (struct vty *vty, struct bgp *bgp,
|
|||||||
int local_as = 0;
|
int local_as = 0;
|
||||||
int first = 1;
|
int first = 1;
|
||||||
int has_valid_label = 0;
|
int has_valid_label = 0;
|
||||||
mpls_label_t label;
|
mpls_label_t label = 0;
|
||||||
json_object *json_adv_to = NULL;
|
json_object *json_adv_to = NULL;
|
||||||
|
|
||||||
p = &rn->p;
|
p = &rn->p;
|
||||||
|
@ -349,7 +349,7 @@ cmd_merge_nodes (struct graph *oldgraph, struct graph *newgraph,
|
|||||||
if (i == vector_active (old->to) && direction > 0)
|
if (i == vector_active (old->to) && direction > 0)
|
||||||
{
|
{
|
||||||
assert (vector_count (cnew->from) ==
|
assert (vector_count (cnew->from) ==
|
||||||
cmd_nodes_link (cnew, cnew) ? 2 : 1);
|
(cmd_nodes_link (cnew, cnew) ? 2 : 1));
|
||||||
graph_remove_edge (new, cnew);
|
graph_remove_edge (new, cnew);
|
||||||
|
|
||||||
cmd_reparent_tree (newgraph, oldgraph, cnew);
|
cmd_reparent_tree (newgraph, oldgraph, cnew);
|
||||||
|
@ -671,7 +671,6 @@ static void show_ip_nhrp_shortcut(struct nhrp_shortcut *s, void *pctx)
|
|||||||
static void show_ip_opennhrp_cache(struct nhrp_cache *c, void *pctx)
|
static void show_ip_opennhrp_cache(struct nhrp_cache *c, void *pctx)
|
||||||
{
|
{
|
||||||
struct info_ctx *ctx = pctx;
|
struct info_ctx *ctx = pctx;
|
||||||
struct vty *vty = ctx->vty;
|
|
||||||
char buf[SU_ADDRSTRLEN];
|
char buf[SU_ADDRSTRLEN];
|
||||||
|
|
||||||
if (ctx->afi != family2afi(sockunion_family(&c->remote_addr)))
|
if (ctx->afi != family2afi(sockunion_family(&c->remote_addr)))
|
||||||
|
@ -43,7 +43,7 @@ unsigned char conf_debug_ospf6_route = 0;
|
|||||||
static char *
|
static char *
|
||||||
ospf6_route_table_name (struct ospf6_route_table *table)
|
ospf6_route_table_name (struct ospf6_route_table *table)
|
||||||
{
|
{
|
||||||
static char name[32];
|
static char name[64];
|
||||||
switch (table->scope_type)
|
switch (table->scope_type)
|
||||||
{
|
{
|
||||||
case OSPF6_SCOPE_TYPE_GLOBAL:
|
case OSPF6_SCOPE_TYPE_GLOBAL:
|
||||||
|
Loading…
Reference in New Issue
Block a user