Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/atc This patch marks unused parameters in atc(6) as such.



details:   https://anonhg.NetBSD.org/src/rev/8db14ee5f07e
branches:  trunk
changeset: 474883:8db14ee5f07e
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Sun Jul 25 00:24:38 1999 +0000

description:
This patch marks unused parameters in atc(6) as such.

Patch submitted in PR 8058 by Joseph Myers <jsm28%cam.ac.uk@localhost>

diffstat:

 games/atc/grammar.y  |   6 +++---
 games/atc/graphics.c |   6 +++---
 games/atc/input.c    |  32 ++++++++++++++++----------------
 games/atc/log.c      |   6 +++---
 games/atc/update.c   |   6 +++---
 5 files changed, 28 insertions(+), 28 deletions(-)

diffs (252 lines):

diff -r 7cbd77bc3029 -r 8db14ee5f07e games/atc/grammar.y
--- a/games/atc/grammar.y       Sun Jul 25 00:15:22 1999 +0000
+++ b/games/atc/grammar.y       Sun Jul 25 00:24:38 1999 +0000
@@ -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 @@
 
 void
 check_adir(x, y, dir)
-       int x, y, dir;
+       int x __attribute__((__unused__)), y __attribute__((__unused__)), dir __attribute__((__unused__));
 {
 }
 
diff -r 7cbd77bc3029 -r 8db14ee5f07e games/atc/graphics.c
--- a/games/atc/graphics.c      Sun Jul 25 00:15:22 1999 +0000
+++ b/games/atc/graphics.c      Sun Jul 25 00:24:38 1999 +0000
@@ -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 @@
 
 void
 quit(dummy)
-       int dummy;
+       int dummy __attribute__((__unused__));
 {
        int                     c, y, x;
 #ifdef BSD
diff -r 7cbd77bc3029 -r 8db14ee5f07e games/atc/input.c
--- a/games/atc/input.c Sun Jul 25 00:15:22 1999 +0000
+++ b/games/atc/input.c Sun Jul 25 00:24:38 1999 +0000
@@ -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 @@
 
 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 @@
 
 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 @@
 
 const char     *
 left(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dir = D_LEFT;
        p.new_dir = p.dir - 1;
@@ -404,7 +404,7 @@
 
 const char     *
 right(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dir = D_RIGHT;
        p.new_dir = p.dir + 1;
@@ -415,7 +415,7 @@
 
 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 @@
 
 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 @@
 
 const char     *
 beacon(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dest_type = T_BEACON;
        return (NULL);
@@ -489,7 +489,7 @@
 
 const char     *
 ex_it(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dest_type = T_EXIT;
        return (NULL);
@@ -497,7 +497,7 @@
 
 const char     *
 airport(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dest_type = T_AIRPORT;
        return (NULL);
@@ -505,7 +505,7 @@
 
 const char     *
 climb(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dir = D_UP;
        return (NULL);
@@ -513,7 +513,7 @@
 
 const char     *
 descend(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        dir = D_DOWN;
        return (NULL);
@@ -621,7 +621,7 @@
 
 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 @@
 
 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 @@
 
 const char     *
 ignore(c)
-       char c;
+       char c __attribute__((__unused__));
 {
        if (p.altitude == 0)
                return ("Cannot ignore planes on the ground");
diff -r 7cbd77bc3029 -r 8db14ee5f07e games/atc/log.c
--- a/games/atc/log.c   Sun Jul 25 00:15:22 1999 +0000
+++ b/games/atc/log.c   Sun Jul 25 00:24:38 1999 +0000
@@ -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 @@
 
 void
 log_score_quit(dummy)
-       int dummy;
+       int dummy __attribute__((__unused__));
 {
        (void)log_score(0);
        exit(0);
diff -r 7cbd77bc3029 -r 8db14ee5f07e games/atc/update.c
--- a/games/atc/update.c        Sun Jul 25 00:15:22 1999 +0000
+++ b/games/atc/update.c        Sun Jul 25 00:24:38 1999 +0000
@@ -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 @@
 
 void
 update(dummy)
-       int dummy;
+       int dummy __attribute__((__unused__));
 {
        int     i, dir_diff, unclean;
        PLANE   *pp, *p1, *p2;



Home | Main Index | Thread Index | Old Index