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 /hangman | |
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 'hangman')
-rw-r--r-- | hangman/hangman.h | 4 | ||||
-rw-r--r-- | hangman/main.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/hangman/hangman.h b/hangman/hangman.h index e9aa4f57..6ab760bf 100644 --- a/hangman/hangman.h +++ b/hangman/hangman.h @@ -1,4 +1,4 @@ -/* $NetBSD: hangman.h,v 1.8 1999/09/08 21:17:50 jsm Exp $ */ +/* $NetBSD: hangman.h,v 1.9 1999/09/08 21:45:28 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -82,7 +82,7 @@ extern FILE *Dict; extern off_t Dict_size; -void die __P((int)); +void die __P((int)) __attribute__((__noreturn__)); void endgame __P((void)); int main __P((void)); void getguess __P((void)); diff --git a/hangman/main.c b/hangman/main.c index af579906..8d448e03 100644 --- a/hangman/main.c +++ b/hangman/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.5 1998/09/11 13:42:03 hubertf Exp $ */ +/* $NetBSD: main.c,v 1.6 1999/09/08 21:45:28 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: main.c,v 1.5 1998/09/11 13:42:03 hubertf Exp $"); +__RCSID("$NetBSD: main.c,v 1.6 1999/09/08 21:45:28 jsm Exp $"); #endif #endif /* not lint */ @@ -71,7 +71,7 @@ main(void) */ void die(dummy) - int dummy; + int dummy __attribute__((__unused__)); { mvcur(0, COLS - 1, LINES - 1, 0); endwin(); |