From 078f8fc716df3695094d3a00f634670447d30acd 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 11c2915352..df2c03b45c 100644 --- a/meson.build +++ b/meson.build @@ -70,6 +70,16 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang' '-Woverride-init', '-Wvla', '-Wincompatible-pointer-types', +# '-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 = []