Add __attribute__((__noreturn__)) to various function prototypes in usr.bin/.
commit6d08986d6abb25d6e9e524c8cbefd3e513259531
authorSascha Wildner <saw@online.de>
Sat, 6 Jan 2018 05:31:50 +0000 (6 06:31 +0100)
committerSascha Wildner <saw@online.de>
Sat, 6 Jan 2018 05:32:27 +0000 (6 06:32 +0100)
tree6be4118ff520fcb2c7b7d4e1a8d5e5d3e6996dc9
parent92835b40255f38b84a3cc165fd2d431e53811092
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
49 files changed:
usr.bin/basename/basename.c
usr.bin/bc/extern.h
usr.bin/btpin/btpin.c
usr.bin/c99/c99.c
usr.bin/cap_mkdb/cap_mkdb.c
usr.bin/chat/chat.c
usr.bin/cmp/extern.h
usr.bin/compress/compress.c
usr.bin/crunch/crunchgen/crunchgen.c
usr.bin/crunch/crunchide/crunchide.c
usr.bin/csplit/csplit.c
usr.bin/dfregress/parser.h
usr.bin/find/extern.h
usr.bin/gencat/gencat.c
usr.bin/hexdump/hexdump.h
usr.bin/leave/leave.c
usr.bin/locale/locale.c
usr.bin/localedef/localedef.h
usr.bin/localedef/scanner.c
usr.bin/locate/code/locate.code.c
usr.bin/locate/locate/locate.c
usr.bin/m4/extern.h
usr.bin/mail/extern.h
usr.bin/mkcsmapper/ldef.h
usr.bin/mkstr/mkstr.c
usr.bin/mt/mt.c
usr.bin/nfsstat/nfsstat.c
usr.bin/patch/util.h
usr.bin/pr/extern.h
usr.bin/rfcomm_sppd/rfcomm_sppd.c
usr.bin/rpcgen/rpc_util.h
usr.bin/ruptime/ruptime.c
usr.bin/stat/stat.c
usr.bin/symorder/symorder.c
usr.bin/systat/extern.h
usr.bin/tail/extern.h
usr.bin/talk/talk.h
usr.bin/tcopy/tcopy.c
usr.bin/telnet/externs.h
usr.bin/tftp/main.c
usr.bin/tip/tip.h
usr.bin/truss/extern.h
usr.bin/tset/tset.c
usr.bin/uname/uname.c
usr.bin/usbhidaction/usbhidaction.c
usr.bin/whereis/whereis.c
usr.bin/window/main.c
usr.bin/window/ww.h
usr.bin/xstr/xstr.c