diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-06-07 13:53:23 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-06-07 13:53:23 +0000 |
commit | cc56fb877f2623ca3b0eb30e945a9538e9129443 (patch) | |
tree | 4929c28447a7022bb1a1d9c3aa21ed762e06a5ea | |
parent | ea1b675ef1cea3cc03015d2f1232748f18b888e2 (diff) |
Better warning fix, in line with the rest of the code
(__attribute((__unused__)) denotes parameters that MAY be unused in the
code, e.g., it's mostly a `shut up warnings' device).
-rw-r--r-- | usr.bin/make/arch.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index 4d055b5eb03..45a0b42c733 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: arch.c,v 1.48 2001/06/05 11:59:10 espie Exp $ */ +/* $OpenBSD: arch.c,v 1.49 2001/06/07 13:53:22 espie Exp $ */ /* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ /* @@ -901,15 +901,14 @@ Arch_Touch(gn) /*ARGSUSED*/ void Arch_TouchLib(gn) - GNode *gn; /* The node of the library to touch */ + GNode *gn UNUSED; /* The node of the library to touch */ + /* ^ Non RANLIBMAG does nothing with it */ { #ifdef RANLIBMAG if (gn->path != NULL) { ArchTouch(gn->path, RANLIBMAG); set_times(gn->path); } -#else - gn = gn; #endif } |