Module Name:    src
Committed By:   mrg
Date:           Sun Sep 27 01:07:12 UTC 2020

Modified Files:
        src/usr.bin/make: targ.c

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/usr.bin/make/targ.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/targ.c
diff -u src/usr.bin/make/targ.c:1.102 src/usr.bin/make/targ.c:1.103
--- src/usr.bin/make/targ.c:1.102	Sat Sep 26 17:39:45 2020
+++ src/usr.bin/make/targ.c	Sun Sep 27 01:07:12 2020
@@ -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 @@ static GNodeList *allGNs;	/* List of all
 #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 @@ Targ_PrintNodes(GNodeList *gnodes, int p
 }
 
 /* Print only those targets that are just a source. */
-static int
+static void
 PrintOnlySources(void)
 {
     GNodeListNode *ln;

Reply via email to