summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-07-25 00:24:38 +0000
committerhubertf <hubertf@NetBSD.org>1999-07-25 00:24:38 +0000
commitda5bab8233f2698f91a021aa951723a66fda731c (patch)
tree355a7f966a064c1bc90744326c41bd8f42788066 /atc
parent3c08ccebb59d59eb0c012d59d6b6dd77d1a434b8 (diff)
downloadbsdgames-darwin-da5bab8233f2698f91a021aa951723a66fda731c.tar.gz
bsdgames-darwin-da5bab8233f2698f91a021aa951723a66fda731c.tar.zst
bsdgames-darwin-da5bab8233f2698f91a021aa951723a66fda731c.zip
This patch marks unused parameters in atc(6) as such.
Patch submitted in PR 8058 by Joseph Myers <jsm28@cam.ac.uk>
Diffstat (limited to 'atc')
-rw-r--r--atc/grammar.y6
-rw-r--r--atc/graphics.c6
-rw-r--r--atc/input.c32
-rw-r--r--atc/log.c6
-rw-r--r--atc/update.c6
5 files changed, 28 insertions, 28 deletions
diff --git a/atc/grammar.y b/atc/grammar.y
index 4687582d..4f32ddf2 100644
--- a/atc/grammar.y
+++ b/atc/grammar.y
@@ -1,4 +1,4 @@
-/* $NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $ */
+/* $NetBSD: grammar.y,v 1.6 1999/07/25 00:24:38 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -68,7 +68,7 @@
#if 0
static char sccsid[] = "@(#)grammar.y 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $");
+__RCSID("$NetBSD: grammar.y,v 1.6 1999/07/25 00:24:38 hubertf Exp $");
#endif
#endif /* not lint */
@@ -379,7 +379,7 @@ check_edir(x, y, dir)
void
check_adir(x, y, dir)
- int x, y, dir;
+ int x __attribute__((__unused__)), y __attribute__((__unused__)), dir __attribute__((__unused__));
{
}
diff --git a/atc/graphics.c b/atc/graphics.c
index e7f64398..693e0ae9 100644
--- a/atc/graphics.c
+++ b/atc/graphics.c
@@ -1,4 +1,4 @@
-/* $NetBSD: graphics.c,v 1.6 1999/07/24 23:58:15 hubertf Exp $ */
+/* $NetBSD: graphics.c,v 1.7 1999/07/25 00:24:38 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: graphics.c,v 1.6 1999/07/24 23:58:15 hubertf Exp $");
+__RCSID("$NetBSD: graphics.c,v 1.7 1999/07/25 00:24:38 hubertf Exp $");
#endif
#endif /* not lint */
@@ -297,7 +297,7 @@ ioerror(pos, len, str)
void
quit(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
int c, y, x;
#ifdef BSD
diff --git a/atc/input.c b/atc/input.c
index 821d6055..a5c75dec 100644
--- a/atc/input.c
+++ b/atc/input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: input.c,v 1.12 1999/07/17 19:57:03 hubertf Exp $ */
+/* $NetBSD: input.c,v 1.13 1999/07/25 00:24:38 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: input.c,v 1.12 1999/07/17 19:57:03 hubertf Exp $");
+__RCSID("$NetBSD: input.c,v 1.13 1999/07/25 00:24:38 hubertf Exp $");
#endif
#endif not lint
@@ -374,7 +374,7 @@ setplane(c)
const char *
turn(c)
- char c;
+ char c __attribute__((__unused__));
{
if (p.altitude == 0)
return ("Planes at airports may not change direction");
@@ -383,7 +383,7 @@ turn(c)
const char *
circle(c)
- char c;
+ char c __attribute__((__unused__));
{
if (p.altitude == 0)
return ("Planes cannot circle on the ground");
@@ -393,7 +393,7 @@ circle(c)
const char *
left(c)
- char c;
+ char c __attribute__((__unused__));
{
dir = D_LEFT;
p.new_dir = p.dir - 1;
@@ -404,7 +404,7 @@ left(c)
const char *
right(c)
- char c;
+ char c __attribute__((__unused__));
{
dir = D_RIGHT;
p.new_dir = p.dir + 1;
@@ -415,7 +415,7 @@ right(c)
const char *
Left(c)
- char c;
+ char c __attribute__((__unused__));
{
p.new_dir = p.dir - 2;
if (p.new_dir < 0)
@@ -425,7 +425,7 @@ Left(c)
const char *
Right(c)
- char c;
+ char c __attribute__((__unused__));
{
p.new_dir = p.dir + 2;
if (p.new_dir >= MAXDIR)
@@ -481,7 +481,7 @@ delayb(c)
const char *
beacon(c)
- char c;
+ char c __attribute__((__unused__));
{
dest_type = T_BEACON;
return (NULL);
@@ -489,7 +489,7 @@ beacon(c)
const char *
ex_it(c)
- char c;
+ char c __attribute__((__unused__));
{
dest_type = T_EXIT;
return (NULL);
@@ -497,7 +497,7 @@ ex_it(c)
const char *
airport(c)
- char c;
+ char c __attribute__((__unused__));
{
dest_type = T_AIRPORT;
return (NULL);
@@ -505,7 +505,7 @@ airport(c)
const char *
climb(c)
- char c;
+ char c __attribute__((__unused__));
{
dir = D_UP;
return (NULL);
@@ -513,7 +513,7 @@ climb(c)
const char *
descend(c)
- char c;
+ char c __attribute__((__unused__));
{
dir = D_DOWN;
return (NULL);
@@ -621,7 +621,7 @@ rel_dir(c)
const char *
mark(c)
- char c;
+ char c __attribute__((__unused__));
{
if (p.altitude == 0)
return ("Cannot mark planes on the ground");
@@ -633,7 +633,7 @@ mark(c)
const char *
unmark(c)
- char c;
+ char c __attribute__((__unused__));
{
if (p.altitude == 0)
return ("Cannot unmark planes on the ground");
@@ -645,7 +645,7 @@ unmark(c)
const char *
ignore(c)
- char c;
+ char c __attribute__((__unused__));
{
if (p.altitude == 0)
return ("Cannot ignore planes on the ground");
diff --git a/atc/log.c b/atc/log.c
index 746912b4..8979b962 100644
--- a/atc/log.c
+++ b/atc/log.c
@@ -1,4 +1,4 @@
-/* $NetBSD: log.c,v 1.9 1999/07/17 19:57:03 hubertf Exp $ */
+/* $NetBSD: log.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: log.c,v 1.9 1999/07/17 19:57:03 hubertf Exp $");
+__RCSID("$NetBSD: log.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $");
#endif
#endif not lint
@@ -292,7 +292,7 @@ log_score(list_em)
void
log_score_quit(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
(void)log_score(0);
exit(0);
diff --git a/atc/update.c b/atc/update.c
index a1b8aa77..7cec3927 100644
--- a/atc/update.c
+++ b/atc/update.c
@@ -1,4 +1,4 @@
-/* $NetBSD: update.c,v 1.9 1999/07/24 23:58:15 hubertf Exp $ */
+/* $NetBSD: update.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: update.c,v 1.9 1999/07/24 23:58:15 hubertf Exp $");
+__RCSID("$NetBSD: update.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $");
#endif
#endif not lint
@@ -58,7 +58,7 @@ __RCSID("$NetBSD: update.c,v 1.9 1999/07/24 23:58:15 hubertf Exp $");
void
update(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
int i, dir_diff, unclean;
PLANE *pp, *p1, *p2;