git: Add __attribute__((__noreturn__)) to various function prototypes in games/.
Sascha Wildner
swildner at crater.dragonflybsd.org
Thu Dec 28 13:58:15 PST 2017
commit 09ac707a1c3554762b92d3bd2355bcf33bde72f4
Author: Sascha Wildner <saw at online.de>
Date: Thu Dec 28 22:57:41 2017 +0100
Add __attribute__((__noreturn__)) to various function prototypes in games/.
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:
games/adventure/hdr.h | 5 ++---
games/arithmetic/arithmetic.c | 4 ++--
games/atc/extern.h | 4 ++--
games/backgammon/common_source/back.h | 4 ++--
games/backgammon/teachgammon/tutor.h | 6 ++++--
games/battlestar/externs.h | 5 ++---
games/cribbage/cribbage.h | 3 +--
games/hack/hack.h | 11 +++++------
games/hangman/hangman.h | 2 +-
games/hunt/hunt/client.h | 5 ++---
games/hunt/huntd/server.h | 3 +--
games/larn/header.h | 3 +--
games/mille/mille.c | 3 +--
games/mille/mille.h | 3 +--
games/number/number.c | 2 +-
games/phantasia/io.c | 2 +-
games/phantasia/setup.c | 3 +--
games/pig/pig.c | 2 +-
games/quiz/quiz.c | 4 ++--
games/robots/robots.h | 2 +-
games/rogue/rogue.h | 12 ++++++------
games/sail/externs.h | 8 ++++----
games/tetris/tetris.c | 2 +-
games/tetris/tetris.h | 2 +-
games/trek/trek.h | 8 ++++----
games/worm/worm.c | 4 ++--
games/worms/worms.c | 2 +-
games/wump/wump.c | 2 +-
28 files changed, 54 insertions(+), 62 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/09ac707a1c3554762b92d3bd2355bcf33bde72f4
--
DragonFly BSD source repository
More information about the Commits
mailing list