Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make make(1): declare unused argument in Arch_TouchL...



details:   https://anonhg.NetBSD.org/src/rev/10f0a50ac48c
branches:  trunk
changeset: 942943:10f0a50ac48c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 22 15:46:28 2020 +0000

description:
make(1): declare unused argument in Arch_TouchLib in a simpler way

diffstat:

 usr.bin/make/arch.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (47 lines):

diff -r cb07a33ca279 -r 10f0a50ac48c usr.bin/make/arch.c
--- a/usr.bin/make/arch.c       Sat Aug 22 15:43:32 2020 +0000
+++ b/usr.bin/make/arch.c       Sat Aug 22 15:46:28 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arch.c,v 1.89 2020/08/22 15:17:09 rillig Exp $ */
+/*     $NetBSD: arch.c,v 1.90 2020/08/22 15:46:28 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: arch.c,v 1.89 2020/08/22 15:17:09 rillig Exp $";
+static char rcsid[] = "$NetBSD: arch.c,v 1.90 2020/08/22 15:46:28 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)arch.c     8.2 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: arch.c,v 1.89 2020/08/22 15:17:09 rillig Exp $");
+__RCSID("$NetBSD: arch.c,v 1.90 2020/08/22 15:46:28 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1038,11 +1038,7 @@
  *-----------------------------------------------------------------------
  */
 void
-#if !defined(RANLIBMAG)
-Arch_TouchLib(GNode *gn MAKE_ATTR_UNUSED)
-#else
 Arch_TouchLib(GNode *gn)
-#endif
 {
 #ifdef RANLIBMAG
     FILE *         arch;       /* Stream open to archive */
@@ -1059,6 +1055,8 @@
        times.actime = times.modtime = now;
        utime(gn->path, &times);
     }
+#else
+    (void)gn;
 #endif
 }
 



Home | Main Index | Thread Index | Old Index