hack: meson.build: enable analyzer

This commit is contained in:
Enrico Weigelt, metux IT consult 2025-05-06 12:09:59 +02:00
parent db18f717ac
commit 2ba1178e22

View File

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