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

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Jan 13 12:40:36 PST 2018


commit fe08e20ddf9efaf51ce4fbe089d786a1989e1262
Author: Sascha Wildner <saw at online.de>
Date:   Sat Jan 13 21:37:56 2018 +0100

    Add __attribute__((__noreturn__)) to various function prototypes in usr.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:
 usr.sbin/ac/ac.c                        |  2 +-
 usr.sbin/arp/arp.c                      |  2 +-
 usr.sbin/autofs/common.h                |  4 ++--
 usr.sbin/btconfig/btconfig.c            |  6 +++---
 usr.sbin/burncd/burncd.c                |  2 +-
 usr.sbin/cdcontrol/cdcontrol.c          |  2 +-
 usr.sbin/clog/clog.c                    |  6 +++---
 usr.sbin/dntpd/client.h                 |  2 +-
 usr.sbin/fdcontrol/fdcontrol.c          |  2 +-
 usr.sbin/ftp-proxy/ftp-proxy.c          |  6 +++---
 usr.sbin/gifconfig/gifconfig.c          |  2 +-
 usr.sbin/inetd/builtins.c               | 10 +++++-----
 usr.sbin/lpr/common_source/lp.h         |  4 ++--
 usr.sbin/lpr/lpc/extern.h               |  3 +--
 usr.sbin/lpr/lpd/extern.h               |  4 ++--
 usr.sbin/mld6query/mld6query.c          |  4 ++--
 usr.sbin/mrouted/mtrace.c               |  2 +-
 usr.sbin/ndiscvt/inf-token.l            |  2 +-
 usr.sbin/ndp/ndp.c                      |  2 +-
 usr.sbin/pfctl/pfctl.c                  |  2 +-
 usr.sbin/pflogd/pflogd.c                |  2 +-
 usr.sbin/ppp/main.h                     |  3 +--
 usr.sbin/pwd_mkdb/pwd_mkdb.c            |  3 +--
 usr.sbin/route6d/route6d.c              |  4 ++--
 usr.sbin/rpc.lockd/lockd.c              |  5 ++---
 usr.sbin/rpc.ypupdated/ypupdated_main.c |  2 +-
 usr.sbin/rpc.ypxfrd/ypxfrd_main.c       |  2 +-
 usr.sbin/rpcbind/rpcbind.h              |  4 ++--
 usr.sbin/rwhod/rwhod.c                  |  4 ++--
 usr.sbin/sensorsd/sensorsd.c            |  2 +-
 usr.sbin/setkey/setkey.c                |  4 ++--
 usr.sbin/setkey/token.l                 |  2 +-
 usr.sbin/sysvipcd/sysvipcd.c            |  2 +-
 usr.sbin/timed/timed/extern.h           |  4 ++--
 usr.sbin/timed/timedc/extern.h          |  5 ++---
 usr.sbin/traceroute/traceroute.c        |  2 +-
 usr.sbin/traceroute6/traceroute6.c      |  2 +-
 usr.sbin/watchdogd/watchdogd.c          |  2 +-
 usr.sbin/ypbind/ypbind.c                |  3 +--
 39 files changed, 60 insertions(+), 66 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list