From 37fb46f092d79d47da38b5b03bbdbf35848318f2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 30 Sep 2024 03:58:12 +0300 Subject: [PATCH] wscript: enable mismatched-dealloc and free-nonheap-object, now that we mark all malloc-like functions with malloc attribute --- wscript | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wscript b/wscript index 502dec34..b2ec3b89 100644 --- a/wscript +++ b/wscript @@ -311,6 +311,7 @@ def configure(conf): # '-Werror=cast-align=strict', '-Werror=duplicated-cond', '-Werror=format-extra-args', + '-Werror=free-nonheap-object', '-Werror=implicit-fallthrough=2', '-Werror=logical-op', '-Werror=nonnull', @@ -335,6 +336,7 @@ def configure(conf): '-Wformat=2', '-Winit-self', '-Wmisleading-indentation', + '-Wmismatched-dealloc', '-Wstringop-overflow', '-Wunintialized',