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/c016cc0d8ab1
branches:  trunk
changeset: 958099:c016cc0d8ab1
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 0ef04e306def -r c016cc0d8ab1 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