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/f597cc43abef
branches:  trunk
changeset: 975155:f597cc43abef
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 272c04508844 -r f597cc43abef 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