git: Add __attribute__((__noreturn__)) to various function prototypes in usr.bin/.
Sascha Wildner
swildner at crater.dragonflybsd.org
Fri Jan 5 21:32:42 PST 2018
commit 6d08986d6abb25d6e9e524c8cbefd3e513259531
Author: Sascha Wildner <saw at online.de>
Date: Sat Jan 6 06:31:50 2018 +0100
Add __attribute__((__noreturn__)) to various function prototypes in usr.bin/.
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.bin/basename/basename.c | 2 +-
usr.bin/bc/extern.h | 2 +-
usr.bin/btpin/btpin.c | 2 +-
usr.bin/c99/c99.c | 2 +-
usr.bin/cap_mkdb/cap_mkdb.c | 2 +-
usr.bin/chat/chat.c | 10 +++++-----
usr.bin/cmp/extern.h | 4 ++--
usr.bin/compress/compress.c | 2 +-
usr.bin/crunch/crunchgen/crunchgen.c | 4 ++--
usr.bin/crunch/crunchide/crunchide.c | 2 +-
usr.bin/csplit/csplit.c | 4 ++--
usr.bin/dfregress/parser.h | 2 +-
usr.bin/find/extern.h | 6 +++---
usr.bin/gencat/gencat.c | 2 +-
usr.bin/hexdump/hexdump.h | 11 +++++------
usr.bin/leave/leave.c | 4 ++--
usr.bin/locale/locale.c | 2 +-
usr.bin/localedef/localedef.h | 2 +-
usr.bin/localedef/scanner.c | 2 +-
usr.bin/locate/code/locate.code.c | 2 +-
usr.bin/locate/locate/locate.c | 2 +-
usr.bin/m4/extern.h | 6 +++---
usr.bin/mail/extern.h | 15 +++++++--------
usr.bin/mkcsmapper/ldef.h | 2 +-
usr.bin/mkstr/mkstr.c | 2 +-
usr.bin/mt/mt.c | 4 ++--
usr.bin/nfsstat/nfsstat.c | 4 ++--
usr.bin/patch/util.h | 9 +++++----
usr.bin/pr/extern.h | 3 +--
usr.bin/rfcomm_sppd/rfcomm_sppd.c | 3 +--
usr.bin/rpcgen/rpc_util.h | 11 +++++------
usr.bin/ruptime/ruptime.c | 2 +-
usr.bin/stat/stat.c | 2 +-
usr.bin/symorder/symorder.c | 4 ++--
usr.bin/systat/extern.h | 6 +++---
usr.bin/tail/extern.h | 3 +--
usr.bin/talk/talk.h | 10 +++++-----
usr.bin/tcopy/tcopy.c | 4 ++--
usr.bin/telnet/externs.h | 6 +++---
usr.bin/tftp/main.c | 4 ++--
usr.bin/tip/tip.h | 10 +++++-----
usr.bin/truss/extern.h | 3 +--
usr.bin/tset/tset.c | 3 +--
usr.bin/uname/uname.c | 2 +-
usr.bin/usbhidaction/usbhidaction.c | 2 +-
usr.bin/whereis/whereis.c | 2 +-
usr.bin/window/main.c | 2 +-
usr.bin/window/ww.h | 2 +-
usr.bin/xstr/xstr.c | 4 ++--
49 files changed, 97 insertions(+), 104 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6d08986d6abb25d6e9e524c8cbefd3e513259531
--
DragonFly BSD source repository
More information about the Commits
mailing list