git: Add __attribute__((__noreturn__)) to various function prototypes in sbin/.

Sascha Wildner swildner at crater.dragonflybsd.org
Tue Dec 19 20:43:59 PST 2017


commit a92dccf2f68888b6649e676eb322672fba722c21
Author: Sascha Wildner <saw at online.de>
Date:   Wed Dec 20 04:33:04 2017 +0100

    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

Summary of changes:
 sbin/devfsctl/devfsctl.h       |  2 +-
 sbin/dhclient/dhclient.c       |  2 +-
 sbin/dhclient/dhcpd.h          |  4 ++--
 sbin/disklabel32/disklabel.c   |  2 +-
 sbin/disklabel64/disklabel64.c |  2 +-
 sbin/dmesg/dmesg.c             |  2 +-
 sbin/dump/dump.h               |  4 ++--
 sbin/dumpfs/dumpfs.c           |  2 +-
 sbin/fsck/fsck.h               |  5 ++---
 sbin/hammer/hammer.h           |  8 ++++----
 sbin/ifconfig/ifconfig.h       |  2 +-
 sbin/mount_udf/mount_udf.c     |  2 +-
 sbin/mountd/mountd.c           |  4 ++--
 sbin/natd/natd.h               |  2 +-
 sbin/newfs/mkfs.c              |  2 +-
 sbin/newfs/newfs.c             |  2 +-
 sbin/nfsd/nfsd.c               | 10 +++++-----
 sbin/ping6/ping6.c             |  4 ++--
 sbin/quotacheck/quotacheck.c   |  2 +-
 sbin/reboot/reboot.c           |  2 +-
 sbin/routed/defs.h             |  2 +-
 sbin/tunefs/tunefs.c           |  3 +--
 sbin/umount/umount.c           |  2 +-
 sbin/vinum/vext.h              |  5 ++---
 24 files changed, 37 insertions(+), 40 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a92dccf2f68888b6649e676eb322672fba722c21


-- 
DragonFly BSD source repository



More information about the Commits mailing list