From 2ba1178e22f0e22bd64b2eb5249081d5d5a12579 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 May 2025 12:09:59 +0200 Subject: [PATCH] hack: meson.build: enable analyzer --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 433bfaf8a..8e2f07772 100644 --- a/meson.build +++ b/meson.build @@ -48,6 +48,16 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang' '-Werror=int-to-pointer-cast', '-Werror=pointer-to-int-cast', '-Wvla', +# '-fanalyzer', +# '-Wno-analyzer-mismatching-deallocation', + '-Wno-analyzer-malloc-leak', +# has some false alarms on deferred request handlers (closure on stack) +# '-Wno-error=analyzer-free-of-non-heap', +# has some false alarms on reallocarray (miinitext) +# '-Wno-error=analyzer-double-free', +# '-Wno-error=analyzer-null-dereference', +# '-Wno-error=analyzer-file-leak', +# '-Wno-error=analyzer-possible-null-dereference', ] else test_wflags = []