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: remove workaround for bug in lint



details:   https://anonhg.NetBSD.org/src/rev/f5e24d2eb46d
branches:  trunk
changeset: 982079:f5e24d2eb46d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Mar 30 14:58:17 2021 +0000

description:
make: remove workaround for bug in lint

The bug has been fixed in lint.

No functional change.

diffstat:

 usr.bin/make/var.c |  9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 5e100dc659c8 -r f5e24d2eb46d usr.bin/make/var.c
--- a/usr.bin/make/var.c        Tue Mar 30 14:33:10 2021 +0000
+++ b/usr.bin/make/var.c        Tue Mar 30 14:58:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: var.c,v 1.893 2021/03/21 23:03:33 rillig Exp $ */
+/*     $NetBSD: var.c,v 1.894 2021/03/30 14:58:17 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -140,7 +140,7 @@
 #include "metachar.h"
 
 /*     "@(#)var.c      8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: var.c,v 1.893 2021/03/21 23:03:33 rillig Exp $");
+MAKE_RCSID("$NetBSD: var.c,v 1.894 2021/03/30 14:58:17 rillig Exp $");
 
 typedef enum VarFlags {
        VFL_NONE        = 0,
@@ -4342,12 +4342,7 @@
 
        Expr expr = {
                NULL,
-#if defined(lint)
-               /* NetBSD lint cannot fully parse C99 struct initializers. */
-               { NULL, NULL },
-#else
                FStr_InitRefer(NULL),
-#endif
                eflags,
                scope,
                DEF_REGULAR



Home | Main Index | Thread Index | Old Index