src: consolidate and improve fallthrough
authorÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 06:57:21 +0000 (07:57 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 17 Nov 2025 07:24:34 +0000 (08:24 +0100)
commit8a8bb3c1a673e567c438472339084943df72540b
tree4f9924b2cf47faf0d19fcff8757364f45c3ec83e
parentd3dc577d7e843b21ecae0b17de4a6cce36b075db
src: consolidate and improve fallthrough

- Enable fallthrough warnings.
- Use fallthrough attribute instead of comments.
- Drop unneeded fallthroughs (no code between two case statements).

Signed-off-by: Álvaro Fernández Rojas <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/307
CMakeLists.txt
src/config.c
src/dhcpv4.c
src/ndp.c
src/netlink.c