From 32462004e66ca5f5201dc5b816ba4151e7e8c6d5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 9 Nov 2024 09:14:06 +0200 Subject: [PATCH] ci,tests: silence compilation warning for vlib/v/tests/testcase_leak.vv --- vlib/v/tests/testcase_leak.vv | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/v/tests/testcase_leak.vv b/vlib/v/tests/testcase_leak.vv index ae0d81e52..38eb181f8 100644 --- a/vlib/v/tests/testcase_leak.vv +++ b/vlib/v/tests/testcase_leak.vv @@ -8,5 +8,6 @@ fn main() { mut y := unsafe { malloc(1000) } // unsafe { free(y) } // leak if commented out y = unsafe { nil } + _ = y gc_check_leaks() } -- 2.39.5