git: Add __attribute__((__noreturn__)) to a number of usage() like functions.

Sascha Wildner swildner at crater.dragonflybsd.org
Fri Jan 19 02:17:26 PST 2018


commit 8eff40934c430921bd969000e7cd9c9f6a45ddf6
Author: Sascha Wildner <saw at online.de>
Date:   Fri Jan 19 11:16:52 2018 +0100

    Add __attribute__((__noreturn__)) to a number of usage() like functions.
    
    These were not caught in the -Wsuggest-attribute=noreturn cleanup
    because they were already static at that point. There are likely
    more such cases but I don't know how to find them systematically.

Summary of changes:
 bin/ln/ln.c                    | 2 +-
 sbin/hammer/hammer.c           | 2 +-
 sbin/md5/md5.c                 | 2 +-
 usr.bin/ipcrm/ipcrm.c          | 3 +--
 usr.bin/jot/jot.c              | 3 +--
 usr.bin/tr/tr.c                | 2 +-
 usr.sbin/newsyslog/newsyslog.c | 2 +-
 usr.sbin/sicontrol/sicontrol.c | 3 +--
 8 files changed, 8 insertions(+), 11 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8eff40934c430921bd969000e7cd9c9f6a45ddf6


-- 
DragonFly BSD source repository



More information about the Commits mailing list