diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-07-14 16:48:01 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-07-14 16:59:43 +0200 |
commit | acd738fc7f5a8ca637e691e45346d74a149b75c9 (patch) | |
tree | 62d1445b34e13fdfab132fa31cfb0ff9145b73ae /bgpd | |
parent | Merge pull request #803 from opensourcerouting/redhat-doc-fixes-master (diff) | |
download | frr-acd738fc7f5a8ca637e691e45346d74a149b75c9.tar.xz frr-acd738fc7f5a8ca637e691e45346d74a149b75c9.zip |
*: fix GCC 7 switch/case fallthrough warnings
Need a comment on these.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_aspath.c | 1 | ||||
-rw-r--r-- | bgpd/bgp_fsm.c | 1 | ||||
-rw-r--r-- | bgpd/bgp_main.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index 95257493b..47bbfd466 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -1764,6 +1764,7 @@ aspath_reconcile_as4 ( struct aspath *aspath, struct aspath *as4path) " across 2/4 ASN boundary somewhere, broken.."); hops = seg->length; } + /* fallthru */ case AS_SEQUENCE: cpasns = MIN(seg->length, hops); hops -= seg->length; diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 1fc425f8f..3610e6309 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -350,6 +350,7 @@ bgp_timer_set (struct peer *peer) BGP_TIMER_OFF (peer->t_gr_restart); BGP_TIMER_OFF (peer->t_gr_stale); BGP_TIMER_OFF (peer->t_pmax_restart); + /* fallthru */ case Clearing: BGP_TIMER_OFF (peer->t_start); BGP_TIMER_OFF (peer->t_connect); diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index b4d71f78d..7841d510b 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -399,6 +399,7 @@ main (int argc, char **argv) case 'l': bgp_address = optarg; /* listenon implies -n */ + /* fallthru */ case 'n': no_fib_flag = 1; break; |