diff options
author | jsm <jsm@NetBSD.org> | 1999-09-08 21:45:25 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 1999-09-08 21:45:25 +0000 |
commit | 82852318e37fa7eddacc3dd162a2d16d3a7487b9 (patch) | |
tree | ba4e5f04137e24700deb25aaa5abefb172b8c030 /phantasia | |
parent | 04f4d7044367099914cf1906ae27ac20c24e44cf (diff) | |
download | bsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.tar.gz bsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.tar.zst bsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.zip |
Add `__noreturn__' and `__unused__' attributes where appropriate to
the games.
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).
Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082. Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
Diffstat (limited to 'phantasia')
-rw-r--r-- | phantasia/io.c | 4 | ||||
-rw-r--r-- | phantasia/phantglobs.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/phantasia/io.c b/phantasia/io.c index 989a67db..17da74b1 100644 --- a/phantasia/io.c +++ b/phantasia/io.c @@ -1,4 +1,4 @@ -/* $NetBSD: io.c,v 1.4 1999/09/08 21:17:54 jsm Exp $ */ +/* $NetBSD: io.c,v 1.5 1999/09/08 21:45:29 jsm Exp $ */ /* * io.c - input/output routines for Phantasia @@ -241,7 +241,7 @@ getanswer(choices, def) void catchalarm(dummy) - int dummy; + int dummy __attribute__((__unused__)); { longjmp(Timeoenv, 1); } diff --git a/phantasia/phantglobs.h b/phantasia/phantglobs.h index 008ae1de..8e255d74 100644 --- a/phantasia/phantglobs.h +++ b/phantasia/phantglobs.h @@ -1,4 +1,4 @@ -/* $NetBSD: phantglobs.h,v 1.6 1999/09/08 21:17:54 jsm Exp $ */ +/* $NetBSD: phantglobs.h,v 1.7 1999/09/08 21:45:29 jsm Exp $ */ /* * phantglobs.h - global declarations for Phantasia @@ -73,7 +73,7 @@ void awardtreasure __P((void)); void battleplayer __P((long)); void callmonster __P((int)); void cancelmonster __P((void)); -void catchalarm __P((int)); +void catchalarm __P((int)) __attribute__((__noreturn__)); void changestats __P((bool)); void checkbattle __P((void)); void checktampered __P((void)); |