Module Name:    src
Committed By:   rillig
Date:           Sat Feb 26 18:35:01 UTC 2022

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

Log Message:
lint: enable memory debugging

Filling deallocated memory with 0x00 may hide errors, so rather fill
with 0xA5.

While this doesn't change anything about the test about the assertion
failure after a do-while loop (see t_integration.sh, test case
assertion_failures), it may detect other similar bugs earlier.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/Makefile.inc

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/Makefile.inc
diff -u src/usr.bin/xlint/Makefile.inc:1.18 src/usr.bin/xlint/Makefile.inc:1.19
--- src/usr.bin/xlint/Makefile.inc:1.18	Mon Feb  7 21:57:47 2022
+++ src/usr.bin/xlint/Makefile.inc	Sat Feb 26 18:35:01 2022
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.18 2022/02/07 21:57:47 rillig Exp $
+#	$NetBSD: Makefile.inc,v 1.19 2022/02/26 18:35:01 rillig Exp $
 
 .include <bsd.own.mk>
 
@@ -16,6 +16,7 @@ ARCHSUBDIR=	${MACHINE_CPU}
 
 CPPFLAGS+=	-I${.CURDIR}/../arch/${ARCHSUBDIR}
 CPPFLAGS+=	-I${.CURDIR}/../common
+CPPFLAGS+=	-DBLKDEBUG
 
 CLEANFILES+=	*.gcno *.gcda *.gcov
 

Reply via email to