diff options
Diffstat (limited to 'devel/bmake/files/cond.c')
-rw-r--r-- | devel/bmake/files/cond.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/devel/bmake/files/cond.c b/devel/bmake/files/cond.c index 8b7ece30822..3346771f698 100644 --- a/devel/bmake/files/cond.c +++ b/devel/bmake/files/cond.c @@ -1,4 +1,4 @@ -/* $NetBSD: cond.c,v 1.6 2010/04/20 13:37:49 joerg Exp $ */ +/* $NetBSD: cond.c,v 1.7 2011/06/18 22:39:46 bsiegert 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.6 2010/04/20 13:37:49 joerg Exp $"; +static char rcsid[] = "$NetBSD: cond.c,v 1.7 2011/06/18 22:39:46 bsiegert 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.6 2010/04/20 13:37:49 joerg Exp $"); +__RCSID("$NetBSD: cond.c,v 1.7 2011/06/18 22:39:46 bsiegert Exp $"); #endif #endif /* not lint */ #endif @@ -327,7 +327,7 @@ CondGetArg(char **linePtr, char **argPtr, const char *func) *----------------------------------------------------------------------- */ static Boolean -CondDoDefined(int argLen, const char *arg) +CondDoDefined(int argLen __unused, const char *arg) { char *p1; Boolean result; @@ -376,7 +376,7 @@ CondStrMatch(const void *string, const void *pattern) *----------------------------------------------------------------------- */ static Boolean -CondDoMake(int argLen, const char *arg) +CondDoMake(int argLen __unused, const char *arg) { return Lst_Find(create, arg, CondStrMatch) != NULL; } @@ -395,22 +395,22 @@ CondDoMake(int argLen, const char *arg) *----------------------------------------------------------------------- */ static Boolean -CondDoExists(int argLen, const char *arg) +CondDoExists(int argLen __unused, const char *arg) { Boolean result; char *path; path = Dir_FindFile(arg, dirSearchPath); + if (DEBUG(COND)) { + fprintf(debug_file, "exists(%s) result is \"%s\"\n", + arg, path ? path : ""); + } if (path != NULL) { result = TRUE; free(path); } else { result = FALSE; } - if (DEBUG(COND)) { - fprintf(debug_file, "exists(%s) result is \"%s\"\n", - arg, path ? path : ""); - } return (result); } @@ -428,7 +428,7 @@ CondDoExists(int argLen, const char *arg) *----------------------------------------------------------------------- */ static Boolean -CondDoTarget(int argLen, const char *arg) +CondDoTarget(int argLen __unused, const char *arg) { GNode *gn; @@ -452,7 +452,7 @@ CondDoTarget(int argLen, const char *arg) *----------------------------------------------------------------------- */ static Boolean -CondDoCommands(int argLen, const char *arg) +CondDoCommands(int argLen __unused, const char *arg) { GNode *gn; @@ -790,7 +790,7 @@ done: } 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 @@ get_mpt_arg(char **linePtr, char **argPtr, const char *func) } static Boolean -CondDoEmpty(int arglen, const char *arg) +CondDoEmpty(int arglen, const char *arg __unused) { return arglen == 1; } |