diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2023-10-13 11:51:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-13 11:51:11 -0400 |
| commit | 02cbd978011ca0a8afe729ac67f7c00009d5ca0d (patch) | |
| tree | a43347ff1519213c9176d5ad5515ec3468f4eaad /zebra/zebra_rib.c | |
| parent | 4fa73b6572df03fd9df7ffddf279abbcf8ad6b9c (diff) | |
| parent | 7d67b9ff28d09de58c632f80ef7d330e45e698f6 (diff) | |
Merge pull request #14561 from idryzhov/implicit-fallthrough
build: add -Wimplicit-fallthrough
Diffstat (limited to 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 6538b5e0d7..97b6a7decf 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -4083,7 +4083,6 @@ static void _route_entry_dump_nh(const struct route_entry *re, ifp ? ifp->name : "Unknown"); break; case NEXTHOP_TYPE_IPV4: - /* fallthrough */ case NEXTHOP_TYPE_IPV4_IFINDEX: inet_ntop(AF_INET, &nexthop->gate, nhname, INET6_ADDRSTRLEN); break; @@ -5044,7 +5043,7 @@ struct route_table *rib_tables_iter_next(rib_tables_iter_t *iter) iter->vrf_id = VRF_DEFAULT; iter->afi_safi_ix = -1; - /* Fall through */ + fallthrough; case RIB_TABLES_ITER_S_ITERATING: iter->afi_safi_ix++; |
