Module Name: src
Committed By: sjg
Date: Sun Feb 13 21:24:43 UTC 2011
Modified Files:
src/usr.bin/make: cond.c main.c
Log Message:
Mark unused args.
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/make/cond.c
cvs rdiff -u -r1.194 -r1.195 src/usr.bin/make/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/cond.c
diff -u src/usr.bin/make/cond.c:1.60 src/usr.bin/make/cond.c:1.61
--- src/usr.bin/make/cond.c:1.60 Fri Nov 6 19:44:06 2009
+++ src/usr.bin/make/cond.c Sun Feb 13 21:24:42 2011
@@ -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;
}
Index: src/usr.bin/make/main.c
diff -u src/usr.bin/make/main.c:1.194 src/usr.bin/make/main.c:1.195
--- src/usr.bin/make/main.c:1.194 Sat Dec 25 20:34:08 2010
+++ src/usr.bin/make/main.c Sun Feb 13 21:24:43 2011
@@ -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];