From 5454c52f6f17e0626584a184842f65f3e1c47a26 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 26 Feb 2022 18:35:01 +0000 Subject: [PATCH] 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. --- usr.bin/xlint/Makefile.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/xlint/Makefile.inc b/usr.bin/xlint/Makefile.inc index 3a49733b3a39..d244851539b8 100644 --- a/usr.bin/xlint/Makefile.inc +++ b/usr.bin/xlint/Makefile.inc @@ -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 @@ -16,6 +16,7 @@ ARCHSUBDIR= ${MACHINE_CPU} CPPFLAGS+= -I${.CURDIR}/../arch/${ARCHSUBDIR} CPPFLAGS+= -I${.CURDIR}/../common +CPPFLAGS+= -DBLKDEBUG CLEANFILES+= *.gcno *.gcda *.gcov