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): fix lint warnings for constant conditi...



details:   https://anonhg.NetBSD.org/src/rev/800beea51248
branches:  trunk
changeset: 948277:800beea51248
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Dec 23 14:05:32 2020 +0000

description:
make(1): fix lint warnings for constant condition in DEBUG calls

diffstat:

 usr.bin/make/make.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6674c4243b66 -r 800beea51248 usr.bin/make/make.h
--- a/usr.bin/make/make.h       Wed Dec 23 14:03:13 2020 +0000
+++ b/usr.bin/make/make.h       Wed Dec 23 14:05:32 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: make.h,v 1.238 2020/12/23 14:03:13 rillig Exp $        */
+/*     $NetBSD: make.h,v 1.239 2020/12/23 14:05:32 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -589,7 +589,7 @@
        do { \
                if (DEBUG(module)) \
                        debug_printf args; \
-       } while (0)
+       } while (/*CONSTCOND*/ 0)
 
 #define DEBUG0(module, text) \
        DEBUG_IMPL(module, ("%s", text))



Home | Main Index | Thread Index | Old Index