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 = []