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): mark Suff.ref as probably unused



details:   https://anonhg.NetBSD.org/src/rev/63c72d257156
branches:  trunk
changeset: 957081:63c72d257156
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Nov 16 16:15:37 2020 +0000

description:
make(1): mark Suff.ref as probably unused

diffstat:

 usr.bin/make/suff.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r bab093f71d38 -r 63c72d257156 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c       Mon Nov 16 15:12:16 2020 +0000
+++ b/usr.bin/make/suff.c       Mon Nov 16 16:15:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: suff.c,v 1.236 2020/11/15 22:31:03 rillig Exp $        */
+/*     $NetBSD: suff.c,v 1.237 2020/11/16 16:15:37 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -129,7 +129,7 @@
 #include "dir.h"
 
 /*     "@(#)suff.c     8.4 (Berkeley) 3/21/94" */
-MAKE_RCSID("$NetBSD: suff.c,v 1.236 2020/11/15 22:31:03 rillig Exp $");
+MAKE_RCSID("$NetBSD: suff.c,v 1.237 2020/11/16 16:15:37 rillig Exp $");
 
 #define SUFF_DEBUG0(text) DEBUG0(SUFF, text)
 #define SUFF_DEBUG1(fmt, arg1) DEBUG1(SUFF, fmt, arg1)
@@ -179,7 +179,12 @@
                                 * and several other places */
     SuffList    *parents;      /* Suffixes we have a transformation to */
     SuffList    *children;     /* Suffixes we have a transformation from */
-    SuffListList *ref;         /* Lists in which this suffix is referenced */
+
+    /* Lists in which this suffix is referenced.
+     * XXX: These lists are used nowhere, they are just appended to, for no
+     * apparent reason.  They do have the side effect of increasing refCount
+     * though. */
+    SuffListList *ref;
 } Suff;
 
 /*



Home | Main Index | Thread Index | Old Index