Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: in debug mode, don't generate empt...



details:   https://anonhg.NetBSD.org/src/rev/9672dcaef51e
branches:  trunk
changeset: 377441:9672dcaef51e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jul 11 17:33:45 2023 +0000

description:
lint: in debug mode, don't generate empty message texts

Most of these messages have an /* unused */ comment in err.c, but some
don't.

diffstat:

 usr.bin/xlint/lint1/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1f3371c9be42 -r 9672dcaef51e usr.bin/xlint/lint1/Makefile
--- a/usr.bin/xlint/lint1/Makefile      Tue Jul 11 17:03:16 2023 +0000
+++ b/usr.bin/xlint/lint1/Makefile      Tue Jul 11 17:33:45 2023 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.97 2023/07/08 11:18:16 rillig Exp $
+#      $NetBSD: Makefile,v 1.98 2023/07/11 17:33:45 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -81,7 +81,7 @@ DPADD+=               ${LIBL}
 err-msgs.h: err.c
        ${_MKTARGET_CREATE}
        sp='[[:space:]]*'; \
-       from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\(Q*[0-9][0-9]*\)$$sp\*/\$$"; \
+       from="^$$sp\(\"[^\"].*\"\)\,$$sp/\*$$sp\(Q*[0-9][0-9]*\)$$sp\*/\$$"; \
        ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < ${.ALLSRC:M*err.c} > ${.TARGET}.tmp
        mv -f ${.TARGET}.tmp ${.TARGET}
 



Home | Main Index | Thread Index | Old Index