Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make only print the 'duplicate script for target' wa...



details:   https://anonhg.NetBSD.org/src/rev/8e02c1b99e2c
branches:  trunk
changeset: 502138:8e02c1b99e2c
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Jan 12 09:27:44 2001 +0000

description:
only print the 'duplicate script for target' warning if
parseWarnFatal is on

diffstat:

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

diffs (40 lines):

diff -r ed0a9b77a9d2 -r 8e02c1b99e2c usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Fri Jan 12 05:39:37 2001 +0000
+++ b/usr.bin/make/parse.c      Fri Jan 12 09:27:44 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.56 2001/01/10 15:54:00 christos Exp $      */
+/*     $NetBSD: parse.c,v 1.57 2001/01/12 09:27:44 jdolecek Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -39,14 +39,14 @@
  */
 
 #ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: parse.c,v 1.56 2001/01/10 15:54:00 christos Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.57 2001/01/12 09:27:44 jdolecek 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.56 2001/01/10 15:54:00 christos Exp $");
+__RCSID("$NetBSD: parse.c,v 1.57 2001/01/12 09:27:44 jdolecek Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1596,10 +1596,12 @@
        gn = (GNode *) Lst_Datum (Lst_Last (gn->cohorts));
     if (!(gn->type & OP_HAS_COMMANDS))
        (void)Lst_AtEnd(gn->commands, cmd);
-    else
+    else if (parseWarnFatal) {
        Parse_Error (PARSE_WARNING,
                     "duplicate script for target \"%s\" ignored",
                     gn->name);
+    }
+
     return(0);
 }
 



Home | Main Index | Thread Index | Old Index