Module Name: src
Committed By: rillig
Date: Mon Nov 16 16:15:37 UTC 2020
Modified Files:
src/usr.bin/make: suff.c
Log Message:
make(1): mark Suff.ref as probably unused
To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/usr.bin/make/suff.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/suff.c
diff -u src/usr.bin/make/suff.c:1.236 src/usr.bin/make/suff.c:1.237
--- src/usr.bin/make/suff.c:1.236 Sun Nov 15 22:31:03 2020
+++ src/usr.bin/make/suff.c Mon Nov 16 16:15:37 2020
@@ -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 @@ typedef struct Suff {
* 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;
/*