Skip to content

Commit 03fc787

Browse files
hubertfhubertf
authored andcommitted
This patch marks unused parameters in atc(6) as such.
Patch submitted in PR 8058 by Joseph Myers <jsm28@cam.ac.uk>
1 parent 3ebb62e commit 03fc787

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

games/atc/grammar.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $ */
1+
/* $NetBSD: grammar.y,v 1.6 1999/07/25 00:24:38 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1990, 1993
@@ -68,7 +68,7 @@
6868
#if 0
6969
static char sccsid[] = "@(#)grammar.y 8.1 (Berkeley) 5/31/93";
7070
#else
71-
__RCSID("$NetBSD: grammar.y,v 1.5 1999/07/21 13:10:47 hubertf Exp $");
71+
__RCSID("$NetBSD: grammar.y,v 1.6 1999/07/25 00:24:38 hubertf Exp $");
7272
#endif
7373
#endif /* not lint */
7474

@@ -379,7 +379,7 @@ check_edir(x, y, dir)
379379

380380
void
381381
check_adir(x, y, dir)
382-
int x, y, dir;
382+
int x __attribute__((__unused__)), y __attribute__((__unused__)), dir __attribute__((__unused__));
383383
{
384384
}
385385

games/atc/graphics.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: graphics.c,v 1.6 1999/07/24 23:58:15 hubertf Exp $ */
1+
/* $NetBSD: graphics.c,v 1.7 1999/07/25 00:24:38 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
5050
#if 0
5151
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
5252
#else
53-
__RCSID("$NetBSD: graphics.c,v 1.6 1999/07/24 23:58:15 hubertf Exp $");
53+
__RCSID("$NetBSD: graphics.c,v 1.7 1999/07/25 00:24:38 hubertf Exp $");
5454
#endif
5555
#endif /* not lint */
5656

@@ -297,7 +297,7 @@ ioerror(pos, len, str)
297297

298298
void
299299
quit(dummy)
300-
int dummy;
300+
int dummy __attribute__((__unused__));
301301
{
302302
int c, y, x;
303303
#ifdef BSD

games/atc/input.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: input.c,v 1.12 1999/07/17 19:57:03 hubertf Exp $ */
1+
/* $NetBSD: input.c,v 1.13 1999/07/25 00:24:38 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
5050
#if 0
5151
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
5252
#else
53-
__RCSID("$NetBSD: input.c,v 1.12 1999/07/17 19:57:03 hubertf Exp $");
53+
__RCSID("$NetBSD: input.c,v 1.13 1999/07/25 00:24:38 hubertf Exp $");
5454
#endif
5555
#endif not lint
5656

@@ -374,7 +374,7 @@ setplane(c)
374374

375375
const char *
376376
turn(c)
377-
char c;
377+
char c __attribute__((__unused__));
378378
{
379379
if (p.altitude == 0)
380380
return ("Planes at airports may not change direction");
@@ -383,7 +383,7 @@ turn(c)
383383

384384
const char *
385385
circle(c)
386-
char c;
386+
char c __attribute__((__unused__));
387387
{
388388
if (p.altitude == 0)
389389
return ("Planes cannot circle on the ground");
@@ -393,7 +393,7 @@ circle(c)
393393

394394
const char *
395395
left(c)
396-
char c;
396+
char c __attribute__((__unused__));
397397
{
398398
dir = D_LEFT;
399399
p.new_dir = p.dir - 1;
@@ -404,7 +404,7 @@ left(c)
404404

405405
const char *
406406
right(c)
407-
char c;
407+
char c __attribute__((__unused__));
408408
{
409409
dir = D_RIGHT;
410410
p.new_dir = p.dir + 1;
@@ -415,7 +415,7 @@ right(c)
415415

416416
const char *
417417
Left(c)
418-
char c;
418+
char c __attribute__((__unused__));
419419
{
420420
p.new_dir = p.dir - 2;
421421
if (p.new_dir < 0)
@@ -425,7 +425,7 @@ Left(c)
425425

426426
const char *
427427
Right(c)
428-
char c;
428+
char c __attribute__((__unused__));
429429
{
430430
p.new_dir = p.dir + 2;
431431
if (p.new_dir >= MAXDIR)
@@ -481,39 +481,39 @@ delayb(c)
481481

482482
const char *
483483
beacon(c)
484-
char c;
484+
char c __attribute__((__unused__));
485485
{
486486
dest_type = T_BEACON;
487487
return (NULL);
488488
}
489489

490490
const char *
491491
ex_it(c)
492-
char c;
492+
char c __attribute__((__unused__));
493493
{
494494
dest_type = T_EXIT;
495495
return (NULL);
496496
}
497497

498498
const char *
499499
airport(c)
500-
char c;
500+
char c __attribute__((__unused__));
501501
{
502502
dest_type = T_AIRPORT;
503503
return (NULL);
504504
}
505505

506506
const char *
507507
climb(c)
508-
char c;
508+
char c __attribute__((__unused__));
509509
{
510510
dir = D_UP;
511511
return (NULL);
512512
}
513513

514514
const char *
515515
descend(c)
516-
char c;
516+
char c __attribute__((__unused__));
517517
{
518518
dir = D_DOWN;
519519
return (NULL);
@@ -621,7 +621,7 @@ rel_dir(c)
621621

622622
const char *
623623
mark(c)
624-
char c;
624+
char c __attribute__((__unused__));
625625
{
626626
if (p.altitude == 0)
627627
return ("Cannot mark planes on the ground");
@@ -633,7 +633,7 @@ mark(c)
633633

634634
const char *
635635
unmark(c)
636-
char c;
636+
char c __attribute__((__unused__));
637637
{
638638
if (p.altitude == 0)
639639
return ("Cannot unmark planes on the ground");
@@ -645,7 +645,7 @@ unmark(c)
645645

646646
const char *
647647
ignore(c)
648-
char c;
648+
char c __attribute__((__unused__));
649649
{
650650
if (p.altitude == 0)
651651
return ("Cannot ignore planes on the ground");

games/atc/log.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: log.c,v 1.9 1999/07/17 19:57:03 hubertf Exp $ */
1+
/* $NetBSD: log.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1990, 1993
@@ -50,7 +50,7 @@
5050
#if 0
5151
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93";
5252
#else
53-
__RCSID("$NetBSD: log.c,v 1.9 1999/07/17 19:57:03 hubertf Exp $");
53+
__RCSID("$NetBSD: log.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $");
5454
#endif
5555
#endif not lint
5656

@@ -292,7 +292,7 @@ log_score(list_em)
292292

293293
void
294294
log_score_quit(dummy)
295-
int dummy;
295+
int dummy __attribute__((__unused__));
296296
{
297297
(void)log_score(0);
298298
exit(0);

games/atc/update.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: update.c,v 1.9 1999/07/24 23:58:15 hubertf Exp $ */
1+
/* $NetBSD: update.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $ */
22

33
/*-
44
* Copyright (c) 1990, 1993
@@ -50,15 +50,15 @@
5050
#if 0
5151
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
5252
#else
53-
__RCSID("$NetBSD: update.c,v 1.9 1999/07/24 23:58:15 hubertf Exp $");
53+
__RCSID("$NetBSD: update.c,v 1.10 1999/07/25 00:24:39 hubertf Exp $");
5454
#endif
5555
#endif not lint
5656

5757
#include "include.h"
5858

5959
void
6060
update(dummy)
61-
int dummy;
61+
int dummy __attribute__((__unused__));
6262
{
6363
int i, dir_diff, unclean;
6464
PLANE *pp, *p1, *p2;

0 commit comments

Comments
 (0)