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 /sail | |
| parent | 04f4d7044367099914cf1906ae27ac20c24e44cf (diff) | |
| download | bsdgames-darwin-82852318e37fa7eddacc3dd162a2d16d3a7487b9.tar.gz 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 'sail')
| -rw-r--r-- | sail/extern.h | 4 | ||||
| -rw-r--r-- | sail/pl_1.c | 8 | ||||
| -rw-r--r-- | sail/pl_7.c | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/sail/extern.h b/sail/extern.h index 80a274f5..8cd2ccd1 100644 --- a/sail/extern.h +++ b/sail/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.10 1999/09/08 21:17:58 jsm Exp $ */ +/* $NetBSD: extern.h,v 1.11 1999/09/08 21:45:30 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -372,7 +372,7 @@ void choke __P((int)) __attribute__((__noreturn__)); void child __P((int)); /* pl_2.c */ -void play __P((void)); +void play __P((void)) __attribute__((__noreturn__)); /* pl_3.c */ void acceptcombat __P((void)); diff --git a/sail/pl_1.c b/sail/pl_1.c index 979d0c56..b9512e47 100644 --- a/sail/pl_1.c +++ b/sail/pl_1.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_1.c,v 1.6 1999/02/10 00:45:46 hubertf Exp $ */ +/* $NetBSD: pl_1.c,v 1.7 1999/09/08 21:45:30 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_1.c,v 1.6 1999/02/10 00:45:46 hubertf Exp $"); +__RCSID("$NetBSD: pl_1.c,v 1.7 1999/09/08 21:45:30 jsm Exp $"); #endif #endif /* not lint */ @@ -122,7 +122,7 @@ int conditions; /*ARGSUSED*/ void choke(n) - int n; + int n __attribute__((__unused__)); { leave(LEAVE_QUIT); } @@ -130,7 +130,7 @@ choke(n) /*ARGSUSED*/ void child(n) - int n; + int n __attribute__((__unused__)); { union wait status; int pid; diff --git a/sail/pl_7.c b/sail/pl_7.c index b281cd81..ad60b95b 100644 --- a/sail/pl_7.c +++ b/sail/pl_7.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_7.c,v 1.11 1999/09/08 21:17:59 jsm Exp $ */ +/* $NetBSD: pl_7.c,v 1.12 1999/09/08 21:45:30 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_7.c,v 1.11 1999/09/08 21:17:59 jsm Exp $"); +__RCSID("$NetBSD: pl_7.c,v 1.12 1999/09/08 21:45:30 jsm Exp $"); #endif #endif /* not lint */ @@ -94,7 +94,7 @@ cleanupscreen() /*ARGSUSED*/ void newturn(n) - int n; + int n __attribute__((__unused__)); { repaired = loaded = fired = changed = 0; movebuf[0] = '\0'; |
