Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make fix usr.bin/make build (which uses more warnings):



details:   https://anonhg.NetBSD.org/src/rev/39fe94c1c53c
branches:  trunk
changeset: 944350:39fe94c1c53c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Sep 27 01:07:12 2020 +0000

description:
fix usr.bin/make build (which uses more warnings):

remove static only prototype TargPrintOnlySrc().
PrintOnlySources() does not return a value, make it void.

diffstat:

 usr.bin/make/targ.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 8e564a832a4e -r 39fe94c1c53c usr.bin/make/targ.c
--- a/usr.bin/make/targ.c       Sun Sep 27 00:34:44 2020 +0000
+++ b/usr.bin/make/targ.c       Sun Sep 27 01:07:12 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targ.c,v 1.102 2020/09/26 17:39:45 rillig Exp $        */
+/*     $NetBSD: targ.c,v 1.103 2020/09/27 01:07:12 mrg Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -121,7 +121,7 @@
 #include         "dir.h"
 
 /*     "@(#)targ.c     8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: targ.c,v 1.102 2020/09/26 17:39:45 rillig Exp $");
+MAKE_RCSID("$NetBSD: targ.c,v 1.103 2020/09/27 01:07:12 mrg Exp $");
 
 static GNodeList *allTargets;  /* the list of all targets found so far */
 #ifdef CLEANUP
@@ -129,7 +129,6 @@
 #endif
 static Hash_Table targets;     /* a hash table of same */
 
-static int TargPrintOnlySrc(void *, void *);
 #ifdef CLEANUP
 static void TargFreeGN(void *);
 #endif
@@ -514,7 +513,7 @@
 }
 
 /* Print only those targets that are just a source. */
-static int
+static void
 PrintOnlySources(void)
 {
     GNodeListNode *ln;



Home | Main Index | Thread Index | Old Index