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): omit redundant bitwise or in Compat_Make



details:   https://anonhg.NetBSD.org/src/rev/d618894f4861
branches:  trunk
changeset: 1016004:d618894f4861
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 07 10:23:20 2020 +0000

description:
make(1): omit redundant bitwise or in Compat_Make

diffstat:

 usr.bin/make/compat.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r b4aea47f9a5e -r d618894f4861 usr.bin/make/compat.c
--- a/usr.bin/make/compat.c     Sat Nov 07 10:16:18 2020 +0000
+++ b/usr.bin/make/compat.c     Sat Nov 07 10:23:20 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat.c,v 1.175 2020/11/07 10:16:18 rillig Exp $      */
+/*     $NetBSD: compat.c,v 1.176 2020/11/07 10:23:20 rillig Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -96,7 +96,7 @@
 #include "pathnames.h"
 
 /*     "@(#)compat.c   8.2 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: compat.c,v 1.175 2020/11/07 10:16:18 rillig Exp $");
+MAKE_RCSID("$NetBSD: compat.c,v 1.176 2020/11/07 10:23:20 rillig Exp $");
 
 static GNode *curTarg = NULL;
 static pid_t compatChild;
@@ -573,7 +573,8 @@
             * This is to keep its state from affecting that of its parent.
             */
            gn->made = MADE;
-           pgn->flags |= Make_Recheck(gn) == 0 ? FORCE : 0;
+           if (Make_Recheck(gn) == 0)
+               pgn->flags |= FORCE;
            if (!(gn->type & OP_EXEC)) {
                pgn->flags |= CHILDMADE;
                Make_TimeStamp(pgn, gn);



Home | Main Index | Thread Index | Old Index