wscript: enable mismatched-dealloc and free-nonheap-object, now that we mark all malloc-like functions with malloc attribute
This commit is contained in:
parent
bc8bf9a9fb
commit
37fb46f092
1 changed files with 2 additions and 0 deletions
2
wscript
2
wscript
|
@ -311,6 +311,7 @@ def configure(conf):
|
||||||
# '-Werror=cast-align=strict',
|
# '-Werror=cast-align=strict',
|
||||||
'-Werror=duplicated-cond',
|
'-Werror=duplicated-cond',
|
||||||
'-Werror=format-extra-args',
|
'-Werror=format-extra-args',
|
||||||
|
'-Werror=free-nonheap-object',
|
||||||
'-Werror=implicit-fallthrough=2',
|
'-Werror=implicit-fallthrough=2',
|
||||||
'-Werror=logical-op',
|
'-Werror=logical-op',
|
||||||
'-Werror=nonnull',
|
'-Werror=nonnull',
|
||||||
|
@ -335,6 +336,7 @@ def configure(conf):
|
||||||
'-Wformat=2',
|
'-Wformat=2',
|
||||||
'-Winit-self',
|
'-Winit-self',
|
||||||
'-Wmisleading-indentation',
|
'-Wmisleading-indentation',
|
||||||
|
'-Wmismatched-dealloc',
|
||||||
'-Wstringop-overflow',
|
'-Wstringop-overflow',
|
||||||
'-Wunintialized',
|
'-Wunintialized',
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue