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

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Dec 31 08:42:59 PST 2017


commit b9c8dce803ada815871f16c4f1bc2c9ad84e662f
Author: Sascha Wildner <saw at online.de>
Date:   Sun Dec 31 17:42:07 2017 +0100

    Add __attribute__((__noreturn__)) to various function prototypes in libexec/.
    
    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:
 libexec/atrun/atrun.c         | 6 +++---
 libexec/dma/dma.h             | 6 +++---
 libexec/ftpd/Makefile         | 2 +-
 libexec/ftpd/extern.h         | 4 ++--
 libexec/rbootd/defs.h         | 3 +--
 libexec/rpc.rstatd/rstatd.c   | 2 +-
 libexec/rpc.rusersd/rusersd.c | 2 +-
 libexec/rpc.sprayd/sprayd.c   | 4 ++--
 libexec/telnetd/ext.h         | 8 ++++----
 libexec/telnetd/telnetd.c     | 6 +++---
 libexec/tftpd/tftpd.c         | 2 +-
 11 files changed, 22 insertions(+), 23 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list