summaryrefslogtreecommitdiffstats
path: root/mille
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>1999-09-08 21:45:25 +0000
committerjsm <jsm@NetBSD.org>1999-09-08 21:45:25 +0000
commit82852318e37fa7eddacc3dd162a2d16d3a7487b9 (patch)
treeba4e5f04137e24700deb25aaa5abefb172b8c030 /mille
parent04f4d7044367099914cf1906ae27ac20c24e44cf (diff)
downloadbsdgames-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 'mille')
-rw-r--r--mille/mille.c6
-rw-r--r--mille/print.c10
2 files changed, 10 insertions, 6 deletions
diff --git a/mille/mille.c b/mille/mille.c
index a427286b..9991c500 100644
--- a/mille/mille.c
+++ b/mille/mille.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mille.c,v 1.7 1999/03/29 05:12:39 mrg Exp $ */
+/* $NetBSD: mille.c,v 1.8 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1982, 1993\n\
#if 0
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: mille.c,v 1.7 1999/03/29 05:12:39 mrg Exp $");
+__RCSID("$NetBSD: mille.c,v 1.8 1999/09/08 21:45:28 jsm Exp $");
#endif
#endif /* not lint */
@@ -143,7 +143,7 @@ main(ac, av)
*/
void
rub(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
(void)signal(SIGINT, SIG_IGN);
if (getyn(REALLYPROMPT))
diff --git a/mille/print.c b/mille/print.c
index 042b8162..4cf850c6 100644
--- a/mille/print.c
+++ b/mille/print.c
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.7 1999/09/08 21:17:51 jsm Exp $ */
+/* $NetBSD: print.c,v 1.8 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: print.c,v 1.7 1999/09/08 21:17:51 jsm Exp $");
+__RCSID("$NetBSD: print.c,v 1.8 1999/09/08 21:45:28 jsm Exp $");
#endif
#endif /* not lint */
@@ -122,7 +122,11 @@ static char Score_fmt[] = "%4d";
void
prscore(for_real)
- bool for_real;
+#ifdef EXTRAP
+ bool for_real;
+#else
+ bool for_real __attribute__((__unused__));
+#endif
{
PLAY *pp;
int x;