]> git.puffer.fish Git - matthieu/frr.git/commit
build: add -Wimplicit-fallthrough
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 10 Oct 2023 21:15:32 +0000 (00:15 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 12 Oct 2023 18:23:18 +0000 (21:23 +0300)
commit7d67b9ff28d09de58c632f80ef7d330e45e698f6
tree16c8afc9dc80d70951f83d2f1182ace0edc7ee49
parent9bc4d9eaec92589deda092bd867054e25e64be3f
build: add -Wimplicit-fallthrough

Also:
- replace all /* fallthrough */ comments with portable fallthrough;
pseudo keyword to accomodate both gcc and clang
- add missing break; statements as required by older versions of gcc
- cleanup some code to remove unnecessary fallthrough

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
48 files changed:
bgpd/bgp_aspath.c
bgpd/bgp_attr.c
bgpd/bgp_clist.c
bgpd/bgp_fsm.c
bgpd/bgp_open.c
bgpd/bgp_routemap_nb_config.c
bgpd/bgpd.c
bgpd/rfapi/bgp_rfapi_cfg.c
bgpd/rfapi/rfapi_vty.c
configure.ac
ldpd/init.c
ldpd/ldp_vty_exec.c
ldpd/neighbor.c
lib/base64.c
lib/command_match.c
lib/compiler.h
lib/jhash.c
lib/libfrr.c
lib/nexthop.c
lib/nexthop_group.c
lib/printf/printf-pos.c
lib/printf/vfprintf.c
lib/routemap_northbound.c
lib/vty.c
lib/workqueue.c
lib/zclient.c
lib/zlog_5424.c
nhrpd/nhrp_packet.c
nhrpd/nhrp_peer.c
ospf6d/ospf6_message.c
ospf6d/ospf6_route.c
ospf6d/ospf6_route.h
ospf6d/ospf6_snmp.c
ospfd/ospf_flood.c
ospfd/ospf_interface.c
ospfd/ospf_lsa.c
ospfd/ospf_nsm.c
ospfd/ospf_packet.c
pbrd/pbr_nht.c
pimd/pim_nht.c
tests/bgpd/test_capability.c
tools/frr-llvm-cg.c
watchfrr/watchfrr.c
zebra/dplane_fpm_nl.c
zebra/rt_netlink.c
zebra/zebra_mpls.c
zebra/zebra_nhg.c
zebra/zebra_rib.c