summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2018-12-11 10:55:32 +0100
committerEmanuele Di Pascale <emanuele@voltanet.io>2018-12-18 15:25:57 +0100
commit8a5b2e100eaa91f94a14e5905e0827906c73f244 (patch)
tree95935c7034e0ede268e3e41c2e34a899cf0446b0 /isisd
parentisisd, yang: set default network-type to broadcast (diff)
downloadfrr-8a5b2e100eaa91f94a14e5905e0827906c73f244.tar.xz
frr-8a5b2e100eaa91f94a14e5905e0827906c73f244.zip
isisd: suppress maybe uninitialized warnings
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_cli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/isisd/isis_cli.c b/isisd/isis_cli.c
index f1b4af09f..c68f49f92 100644
--- a/isisd/isis_cli.c
+++ b/isisd/isis_cli.c
@@ -175,6 +175,9 @@ DEFPY(ip_router_isis, ip_router_isis_cmd, "ip router isis WORD$tag",
case IS_LEVEL_1_AND_2:
circ_type = "level-1-2";
break;
+ default:
+ /* just to silence compiler warnings */
+ return CMD_WARNING_CONFIG_FAILED;
}
nb_cli_enqueue_change(vty, "./frr-isisd:isis", NB_OP_CREATE,
NULL);
@@ -244,6 +247,9 @@ DEFPY(ip6_router_isis, ip6_router_isis_cmd, "ipv6 router isis WORD$tag",
case IS_LEVEL_1_AND_2:
circ_type = "level-1-2";
break;
+ default:
+ /* just to silence compiler warnings */
+ return CMD_WARNING_CONFIG_FAILED;
}
nb_cli_enqueue_change(vty, "./frr-isisd:isis", NB_OP_CREATE,
NULL);