Add __attribute__((__noreturn__)) to various function prototypes in sbin/.
authorSascha Wildner <saw@online.de>
Wed, 20 Dec 2017 03:33:04 +0000 (04:33 +0100)
committerSascha Wildner <saw@online.de>
Wed, 20 Dec 2017 03:33:45 +0000 (04:33 +0100)
commita92dccf2f68888b6649e676eb322672fba722c21
tree13cdffc15224f3b5a1c32b235b0202eea28765a5
parent32f8d3b4f0de0734f43589665681d4fc68736085
Add __attribute__((__noreturn__)) to various function prototypes in sbin/.

This general cleanup is useful in various ways. It helps the compiler
optimize better and it also helps later GCCs detect better when to give
-Wimplicit-fallthrough warnings and when not.

Found-with: -Wsuggest-attribute=noreturn
24 files changed:
sbin/devfsctl/devfsctl.h
sbin/dhclient/dhclient.c
sbin/dhclient/dhcpd.h
sbin/disklabel32/disklabel.c
sbin/disklabel64/disklabel64.c
sbin/dmesg/dmesg.c
sbin/dump/dump.h
sbin/dumpfs/dumpfs.c
sbin/fsck/fsck.h
sbin/hammer/hammer.h
sbin/ifconfig/ifconfig.h
sbin/mount_udf/mount_udf.c
sbin/mountd/mountd.c
sbin/natd/natd.h
sbin/newfs/mkfs.c
sbin/newfs/newfs.c
sbin/nfsd/nfsd.c
sbin/ping6/ping6.c
sbin/quotacheck/quotacheck.c
sbin/reboot/reboot.c
sbin/routed/defs.h
sbin/tunefs/tunefs.c
sbin/umount/umount.c
sbin/vinum/vext.h