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 CONSTCOND comments, lint no longer...



details:   https://anonhg.NetBSD.org/src/rev/bf7d42f637f0
branches:  trunk
changeset: 1026527:bf7d42f637f0
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 27 22:04:02 2021 +0000

description:
make: remove CONSTCOND comments, lint no longer needs them

diffstat:

 usr.bin/make/make.h |  4 ++--
 usr.bin/make/meta.c |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r eaaf1a892380 -r bf7d42f637f0 usr.bin/make/make.h
--- a/usr.bin/make/make.h       Sat Nov 27 21:23:23 2021 +0000
+++ b/usr.bin/make/make.h       Sat Nov 27 22:04:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.265 2021/09/12 09:51:14 rillig Exp $        */
+/*     $NetBSD: make.h,v 1.266 2021/11/27 22:04:02 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -581,7 +581,7 @@
        do { \
                if (DEBUG(module)) \
                        debug_printf args; \
-       } while (/*CONSTCOND*/false)
+       } while (false)
 
 #define DEBUG0(module, text) \
        DEBUG_IMPL(module, ("%s", text))
diff -r eaaf1a892380 -r bf7d42f637f0 usr.bin/make/meta.c
--- a/usr.bin/make/meta.c       Sat Nov 27 21:23:23 2021 +0000
+++ b/usr.bin/make/meta.c       Sat Nov 27 22:04:02 2021 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.184 2021/10/24 18:45:46 sjg Exp $ */
+/*      $NetBSD: meta.c,v 1.185 2021/11/27 22:04:02 rillig Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -409,7 +409,7 @@
        } \
        return false; \
     } \
-} while (/*CONSTCOND*/false)
+} while (false)
 
 
 /*
@@ -1711,7 +1711,7 @@
            fflush(stdout);
            buf[nread] = '\0';
            meta_job_output(NULL, buf, "");
-       } while (/*CONSTCOND*/false);
+       } while (false);
        if (metafd != -1 && FD_ISSET(metafd, &readfds) != 0) {
            if (meta_job_event(NULL) <= 0)
                metafd = -1;



Home | Main Index | Thread Index | Old Index