From 125c64074c3785191caa856e9fbb95e3be4f42ab Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Mon, 20 Jan 2025 11:27:49 -0600 Subject: [PATCH] ardupilotwaf: fix ESP32 memory zero comment Followup to PR #29005 (d9e5f2d8a7581b79430568bc7a8487df6b4f3a85). --- Tools/ardupilotwaf/boards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index b1aea6bc244cc..a52bb7814e841 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -1068,6 +1068,7 @@ def expand_path(p): env.CXXFLAGS.remove('-Werror=shadow') # wrap malloc to ensure memory is zeroed + # note that this also needs to be done in the CMakeLists.txt files env.LINKFLAGS += ['-Wl,--wrap,malloc'] # TODO: remove once hwdef.dat support is in place @@ -1399,7 +1400,6 @@ def configure_env(self, cfg, env): ] # wrap malloc to ensure memory is zeroed - # note that this also needs to be done in the CMakeLists.txt files env.LINKFLAGS += ['-Wl,--wrap,malloc'] if cfg.options.force_32bit: