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 /trek/trek.h | |
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 'trek/trek.h')
-rw-r--r-- | trek/trek.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/trek/trek.h b/trek/trek.h index a5686e7e..db330782 100644 --- a/trek/trek.h +++ b/trek/trek.h @@ -1,4 +1,4 @@ -/* $NetBSD: trek.h,v 1.6 1999/07/21 13:19:11 hubertf Exp $ */ +/* $NetBSD: trek.h,v 1.7 1999/09/08 21:45:33 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -459,7 +459,7 @@ void killd __P((int, int , int)); void klmove __P((int)); /* lose.c */ -void lose __P((int)); +void lose __P((int)) __attribute__((__noreturn__)); /* lrscan.c */ void lrscan __P((int)); @@ -477,8 +477,8 @@ void out __P((int)); void phaser __P((int)); /* play.c */ -void myreset __P((int)); -void play __P((void)); +void myreset __P((int)) __attribute__((__noreturn__)); +void play __P((void)) __attribute__((__noreturn__)); /* ram.c */ void ram __P((int, int )); @@ -529,4 +529,4 @@ void dowarp __P((int)); void warp __P((int, int, double)); /* win.c */ -void win __P((void)); +void win __P((void)) __attribute__((__noreturn__)); |