Module Name:    src
Committed By:   rillig
Date:           Tue Jul 11 17:33:46 UTC 2023

Modified Files:
        src/usr.bin/xlint/lint1: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/usr.bin/xlint/lint1/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/Makefile
diff -u src/usr.bin/xlint/lint1/Makefile:1.97 src/usr.bin/xlint/lint1/Makefile:1.98
--- src/usr.bin/xlint/lint1/Makefile:1.97	Sat Jul  8 11:18:16 2023
+++ src/usr.bin/xlint/lint1/Makefile	Tue Jul 11 17:33:45 2023
@@ -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}
 

Reply via email to