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/9e466b9837fc
branches:  trunk
changeset: 1017358:9e466b9837fc
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 969c040ccede -r 9e466b9837fc 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