Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Remove VARE_WANTRES for LINT



details:   https://anonhg.NetBSD.org/src/rev/fd10d1cd1fdc
branches:  trunk
changeset: 1012667:fd10d1cd1fdc
user:      sjg <sjg%NetBSD.org@localhost>
date:      Thu Aug 06 16:03:04 2020 +0000

description:
Remove VARE_WANTRES for LINT

We need the parsing checked.
I might make sense to add a VARE_LINT flag for corner cases.
Time will tell.

Reviewed by: rillig

diffstat:

 usr.bin/make/parse.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r ddc50fce9caf -r fd10d1cd1fdc usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Thu Aug 06 10:00:20 2020 +0000
+++ b/usr.bin/make/parse.c      Thu Aug 06 16:03:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.248 2020/08/03 20:43:41 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.249 2020/08/06 16:03:04 sjg Exp $  */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.248 2020/08/03 20:43:41 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.249 2020/08/06 16:03:04 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.248 2020/08/03 20:43:41 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.249 2020/08/06 16:03:04 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1946,7 +1946,7 @@
            /* sanity check now */
            char *cp2;
 
-           cp2 = Var_Subst(cp, ctxt, VARE_WANTRES|VARE_ASSIGN);
+           cp2 = Var_Subst(cp, ctxt, VARE_ASSIGN);
            free(cp2);
        }
     }



Home | Main Index | Thread Index | Old Index