From 7b0dd08921a7c7f739a75cc289a4d8f877ff2bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 12 Feb 2026 14:08:49 +0200 Subject: [PATCH] disable leak checker for now --- build.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.zig b/build.zig index e63a596441..505ea90aee 100644 --- a/build.zig +++ b/build.zig @@ -79,6 +79,12 @@ pub fn build(b: *std.Build) !void { "text", "-Wno-unused-command-line-argument", "-Werror", + // false positive in astgen.c comptimeDecl: analyzer cannot track + // scratch_instructions ownership through pointer parameters. + "-Xclang", + "-analyzer-disable-checker", + "-Xclang", + "unix.Malloc", }); clang_analyze.addFileArg(b.path(cfile)); clang_analyze.expectExitCode(0);