Add __attribute__((__noreturn__)) to various function prototypes in games/.
authorSascha Wildner <saw@online.de>
Thu, 28 Dec 2017 21:57:41 +0000 (22:57 +0100)
committerSascha Wildner <saw@online.de>
Thu, 28 Dec 2017 21:58:05 +0000 (22:58 +0100)
commit09ac707a1c3554762b92d3bd2355bcf33bde72f4
tree06578a719786e00ea5564cc13186648df261c775
parentc90980cacc0e9755716016868307d4f8bb7947de
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
28 files changed:
games/adventure/hdr.h
games/arithmetic/arithmetic.c
games/atc/extern.h
games/backgammon/common_source/back.h
games/backgammon/teachgammon/tutor.h
games/battlestar/externs.h
games/cribbage/cribbage.h
games/hack/hack.h
games/hangman/hangman.h
games/hunt/hunt/client.h
games/hunt/huntd/server.h
games/larn/header.h
games/mille/mille.c
games/mille/mille.h
games/number/number.c
games/phantasia/io.c
games/phantasia/setup.c
games/pig/pig.c
games/quiz/quiz.c
games/robots/robots.h
games/rogue/rogue.h
games/sail/externs.h
games/tetris/tetris.c
games/tetris/tetris.h
games/trek/trek.h
games/worm/worm.c
games/worms/worms.c
games/wump/wump.c