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

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Dec 9 00:10:36 PST 2017


commit a31274954f5c10e5a80969dcfc719d665f36a26c
Author: Sascha Wildner <saw at online.de>
Date:   Sat Dec 9 09:09:51 2017 +0100

    Add __attribute__((__noreturn__)) to various function prototypes in 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:
 bin/cp/extern.h   | 2 +-
 bin/cpdup/cpdup.h | 4 +---
 bin/dd/extern.h   | 3 +--
 bin/expr/expr.y   | 3 +--
 bin/ls/extern.h   | 3 +--
 bin/mined/mined.h | 2 +-
 bin/pax/extern.h  | 3 +--
 bin/pwd/pwd.c     | 2 +-
 bin/rcp/extern.h  | 3 +--
 bin/rcp/rcp.c     | 2 +-
 bin/stty/extern.h | 3 +--
 11 files changed, 11 insertions(+), 19 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list