hack: meson.build: enable analyzer
This commit is contained in:
parent
db18f717ac
commit
2ba1178e22
10
meson.build
10
meson.build
|
@ -48,6 +48,16 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||||
'-Werror=int-to-pointer-cast',
|
'-Werror=int-to-pointer-cast',
|
||||||
'-Werror=pointer-to-int-cast',
|
'-Werror=pointer-to-int-cast',
|
||||||
'-Wvla',
|
'-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
|
else
|
||||||
test_wflags = []
|
test_wflags = []
|
||||||
|
|
Loading…
Reference in New Issue