Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Mark unused args.



details:   https://anonhg.NetBSD.org/src/rev/d7de91a4ce4f
branches:  trunk
changeset: 762035:d7de91a4ce4f
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sun Feb 13 21:24:42 2011 +0000

description:
Mark unused args.

diffstat:

 usr.bin/make/cond.c |  20 ++++++++++----------
 usr.bin/make/main.c |   8 ++++----
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (125 lines):

diff -r 3b9e7d2b5133 -r d7de91a4ce4f usr.bin/make/cond.c
--- a/usr.bin/make/cond.c       Sun Feb 13 21:22:41 2011 +0000
+++ b/usr.bin/make/cond.c       Sun Feb 13 21:24:42 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cond.c,v 1.60 2009/11/06 19:44:06 dsl Exp $    */
+/*     $NetBSD: cond.c,v 1.61 2011/02/13 21:24:42 sjg Exp $    */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: cond.c,v 1.60 2009/11/06 19:44:06 dsl Exp $";
+static char rcsid[] = "$NetBSD: cond.c,v 1.61 2011/02/13 21:24:42 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)cond.c     8.2 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: cond.c,v 1.60 2009/11/06 19:44:06 dsl Exp $");
+__RCSID("$NetBSD: cond.c,v 1.61 2011/02/13 21:24:42 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -327,7 +327,7 @@
  *-----------------------------------------------------------------------
  */
 static Boolean
-CondDoDefined(int argLen, const char *arg)
+CondDoDefined(int argLen __unused, const char *arg)
 {
     char    *p1;
     Boolean result;
@@ -376,7 +376,7 @@
  *-----------------------------------------------------------------------
  */
 static Boolean
-CondDoMake(int argLen, const char *arg)
+CondDoMake(int argLen __unused, const char *arg)
 {
     return Lst_Find(create, arg, CondStrMatch) != NULL;
 }
@@ -395,7 +395,7 @@
  *-----------------------------------------------------------------------
  */
 static Boolean
-CondDoExists(int argLen, const char *arg)
+CondDoExists(int argLen __unused, const char *arg)
 {
     Boolean result;
     char    *path;
@@ -428,7 +428,7 @@
  *-----------------------------------------------------------------------
  */
 static Boolean
-CondDoTarget(int argLen, const char *arg)
+CondDoTarget(int argLen __unused, const char *arg)
 {
     GNode   *gn;
 
@@ -452,7 +452,7 @@
  *-----------------------------------------------------------------------
  */
 static Boolean
-CondDoCommands(int argLen, const char *arg)
+CondDoCommands(int argLen __unused, const char *arg)
 {
     GNode   *gn;
 
@@ -790,7 +790,7 @@
 }
 
 static int
-get_mpt_arg(char **linePtr, char **argPtr, const char *func)
+get_mpt_arg(char **linePtr, char **argPtr, const char *func __unused)
 {
     /*
      * Use Var_Parse to parse the spec in parens and return
@@ -831,7 +831,7 @@
 }
 
 static Boolean
-CondDoEmpty(int arglen, const char *arg)
+CondDoEmpty(int arglen, const char *arg __unused)
 {
     return arglen == 1;
 }
diff -r 3b9e7d2b5133 -r d7de91a4ce4f usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sun Feb 13 21:22:41 2011 +0000
+++ b/usr.bin/make/main.c       Sun Feb 13 21:24:42 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.194 2010/12/25 20:34:08 dholland Exp $      */
+/*     $NetBSD: main.c,v 1.195 2011/02/13 21:24:43 sjg Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.194 2010/12/25 20:34:08 dholland Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.195 2011/02/13 21:24:43 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.194 2010/12/25 20:34:08 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.195 2011/02/13 21:24:43 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -706,7 +706,7 @@
 #ifdef SIGINFO
 /*ARGSUSED*/
 static void
-siginfo(int signo)
+siginfo(int signo __unused)
 {
        char dir[MAXPATHLEN];
        char str[2 * MAXPATHLEN];



Home | Main Index | Thread Index | Old Index