]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Use the 'fallthrough' attribute
authorMatteo Croce <teknoraver@meta.com>
Thu, 27 Mar 2025 19:49:10 +0000 (20:49 +0100)
committerMatteo Croce <teknoraver@meta.com>
Mon, 7 Apr 2025 13:09:08 +0000 (15:09 +0200)
commitb77025b6e78efbdd4cc36c5e65d3a8d59a805e63
treef959a170db497beb257ea6aedeed5208edfdce76
parent1a3cbd3c0f7c84f977b624a6240d02ce741fc747
Use the 'fallthrough' attribute

C23[1] and CPP17[2] introduced the 'fallthrough' attribute to let the
compiler know that we're intentionally falling through a case statement.
This suppress a warning with new compilers when doing an implicit fallthrough.

[1] https://en.cppreference.com/w/c/language/attributes/fallthrough
[2] https://en.cppreference.com/w/cpp/language/attributes/fallthrough
36 files changed:
disk-utils/cfdisk.c
disk-utils/fdisk-menu.c
disk-utils/mkfs.minix.c
disk-utils/sfdisk.c
lib/pty-session.c
libblkid/src/topology/md.c
libmount/src/context_mount.c
libsmartcols/src/calculate.c
libsmartcols/src/print.c
login-utils/last.c
login-utils/lslogins.c
login-utils/su-common.c
login-utils/sulogin.c
lsfd-cmd/bdev.c
lsfd-cmd/cdev.c
lsfd-cmd/file.c
lsfd-cmd/sock-xinfo.c
lsfd-cmd/sock.c
lsfd-cmd/unkn.c
misc-utils/cal.c
misc-utils/fincore.c
misc-utils/findmnt.c
misc-utils/lsblk.c
misc-utils/lslocks.c
schedutils/uclampset.c
sys-utils/dmesg.c
sys-utils/flock.c
sys-utils/ipcrm.c
sys-utils/lsipc.c
sys-utils/lsmem.c
term-utils/agetty.c
term-utils/script.c
text-utils/hexdump-parse.c
text-utils/more.c
text-utils/pg.c
text-utils/ul.c